mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
modularize scripts
This commit is contained in:
parent
1dd2833ed7
commit
bbfda77868
15 changed files with 95 additions and 133 deletions
|
@ -40,7 +40,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
function onSubmit(page) {
|
||||
function onSubmit() {
|
||||
|
||||
var page = $(this).parents('.page');
|
||||
|
||||
ApiClient.ajax({
|
||||
|
||||
|
@ -55,18 +57,13 @@
|
|||
|
||||
processForgotPasswordResult(page, result);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
window.ForgotPasswordPage = {
|
||||
|
||||
onSubmit: function () {
|
||||
|
||||
var page = $(this).parents('.page');
|
||||
|
||||
onSubmit(page);
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
$(document).on('pageinitdepends', '#forgotPasswordPage', function () {
|
||||
$('.forgotPasswordForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
});
|
||||
|
||||
})(window);
|
Loading…
Add table
Add a link
Reference in a new issue