mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix artist total record count
This commit is contained in:
parent
f61263bbad
commit
2dba35a875
8 changed files with 49 additions and 58 deletions
|
@ -1,6 +1,6 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define([], function () {
|
||||
|
||||
function processForgotPasswordResult(page, result) {
|
||||
function processForgotPasswordResult(result) {
|
||||
|
||||
if (result.Action == 'ContactAdmin') {
|
||||
|
||||
|
@ -40,32 +40,26 @@
|
|||
}
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
return function (view, params) {
|
||||
|
||||
var page = $(this).parents('.page');
|
||||
function onSubmit(e) {
|
||||
|
||||
ApiClient.ajax({
|
||||
ApiClient.ajax({
|
||||
|
||||
type: 'POST',
|
||||
url: ApiClient.getUrl('Users/ForgotPassword'),
|
||||
dataType: 'json',
|
||||
data: {
|
||||
EnteredUsername: $('#txtName', page).val()
|
||||
}
|
||||
type: 'POST',
|
||||
url: ApiClient.getUrl('Users/ForgotPassword'),
|
||||
dataType: 'json',
|
||||
data: {
|
||||
EnteredUsername: view.querySelector('#txtName').value
|
||||
}
|
||||
|
||||
}).then(function (result) {
|
||||
}).then(processForgotPasswordResult);
|
||||
|
||||
processForgotPasswordResult(page, result);
|
||||
});
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$(document).on('pageinit', '#forgotPasswordPage', function () {
|
||||
|
||||
var page = this;
|
||||
$('.forgotPasswordForm', page).off('submit', onSubmit).on('submit', onSubmit);
|
||||
});
|
||||
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||
};
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue