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:
parent
ca3ad030a0
commit
463ad6cfb1
13 changed files with 101 additions and 91 deletions
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue