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

@ -31,7 +31,9 @@
return;
}
function onSubmit(page) {
function onSubmit() {
var page = $(this).parents('.page');
ApiClient.ajax({
@ -46,18 +48,11 @@
processForgotPasswordResult(page, result);
});
return false;
}
window.ForgotPasswordPinPage = {
onSubmit: function () {
var page = $(this).parents('.page');
onSubmit(page);
return false;
}
};
$(document).on('pageinitdepends', '#forgotPasswordPinPage', function () {
$('.forgotPasswordPinForm').off('submit', onSubmit).on('submit', onSubmit);
});
})(window);