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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue