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

lazy load scripts

This commit is contained in:
Luke Pulverenti 2015-05-18 21:46:31 -04:00
parent ca3ad030a0
commit 463ad6cfb1
13 changed files with 101 additions and 91 deletions

View file

@ -48,21 +48,19 @@
}).done(onUpdateUserComplete);
}
function wizardUserPage() {
function onSubmit() {
var form = this;
var self = this;
submit(form);
self.onSubmit = function () {
var form = this;
submit(form);
return false;
};
return false;
}
$(document).on('pageshow', "#wizardUserPage", function () {
$(document).on('pageinitdepends', "#wizardUserPage", function () {
$('.wizardUserForm').off('submit', onSubmit).on('submit', onSubmit);
}).on('pageshown', "#wizardUserPage", function () {
Dashboard.showLoadingMsg();
@ -80,6 +78,4 @@
});
window.WizardUserPage = new wizardUserPage();
})(jQuery, document, window);