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

modularize scripts

This commit is contained in:
Luke Pulverenti 2015-06-08 00:47:19 -04:00
parent 1dd2833ed7
commit bbfda77868
15 changed files with 95 additions and 133 deletions

View file

@ -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);