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

limit ifo's to 300mb+

This commit is contained in:
Luke Pulverenti 2014-02-23 22:27:13 -05:00
parent 45bcd1b40a
commit 4ab95b6e11
9 changed files with 87 additions and 81 deletions

View file

@ -1,15 +1,28 @@
var LoginPage = {
onPageInit: function () {
var page = this;
$("#popupLogin", page).popup({
afteropen: function (event, ui) {
$('#pw').focus();
}
});
},
onPageShow: function () {
Dashboard.showLoadingMsg();
var page = this;
var isLocalhost = window.location.toString().toLowerCase().indexOf('localhost') != -1;
if (isLocalhost) {
$('.localhostMessage', this).show();
$('.localhostMessage', page).show();
} else {
$('.localhostMessage', this).hide();
$('.localhostMessage', page).hide();
}
// Show all users on localhost
@ -29,13 +42,14 @@
if (showManualForm) {
$('.visualLoginForm', '#loginPage').hide();
$('#manualLoginForm', '#loginPage').show();
$('.visualLoginForm', page).hide();
$('#manualLoginForm', page).show();
$('#txtManualName', page).focus();
} else {
$('.visualLoginForm', '#loginPage').show();
$('#manualLoginForm', '#loginPage').hide();
$('.visualLoginForm', page).show();
$('#manualLoginForm', page).hide();
LoginPage.loadUserList(users);
}
@ -189,4 +203,4 @@
}
};
$(document).on('pageshow', "#loginPage", LoginPage.onPageShow);
$(document).on('pageshow', "#loginPage", LoginPage.onPageShow).on('pageinit', "#loginPage", LoginPage.onPageInit);