1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add option to merge metadata and IBN paths

This commit is contained in:
Luke Pulverenti 2015-01-26 11:47:15 -05:00
parent 3969693dad
commit 2bcfc0f0ba
13 changed files with 31 additions and 23 deletions

View file

@ -15,7 +15,7 @@
if (showManualForm) {
LoginPage.showManualForm(page, false);
LoginPage.showManualForm(page, false, false);
} else {
LoginPage.showVisualForm(page);
@ -36,10 +36,15 @@
LoginPage.showVisualForm($.mobile.activePage);
},
showManualForm: function (page, showCancel) {
showManualForm: function (page, showCancel, focusPassword) {
$('.visualLoginForm', page).hide();
$('#manualLoginForm', page).show();
$('#txtManualName', page).focus();
if (focusPassword) {
$('#txtManualPassword', page).focus();
} else {
$('#txtManualName', page).focus();
}
if (showCancel) {
$('.btnCancel', page).show();
@ -175,7 +180,7 @@
} else {
$('#txtManualName', page).val(name);
$('#txtManualPassword', '#loginPage').val('');
LoginPage.showManualForm(page, true);
LoginPage.showManualForm(page, true, true);
}
});
},