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

@ -72,24 +72,23 @@
});
}
$(document).on('pageshow', "#wizardSettingsPage", function () {
function onSubmit() {
var form = this;
save(form);
return false;
}
$(document).on('pageinitdepends', "#wizardSettingsPage", function () {
$('.wizardSettingsForm', page).off('submit', onSubmit).on('submit', onSubmit);
}).on('pageshown', "#wizardSettingsPage", function () {
var page = this;
reload(page);
});
window.WizardSettingsPage = {
onSubmit: function () {
var form = this;
save(form);
return false;
}
};
})(jQuery, document, window);