mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
fix artist total record count
This commit is contained in:
parent
f61263bbad
commit
2dba35a875
@ -1,4 +1,4 @@
|
||||
<div data-role="page" id="forgotPasswordPage" class="page standalonePage forgotPasswordPage" data-theme="b" data-require="scripts/forgotpassword,emby-input,emby-button">
|
||||
<div data-role="page" id="forgotPasswordPage" class="page standalonePage forgotPasswordPage" data-theme="b">
|
||||
|
||||
<div data-role="content">
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div data-role="page" class="page standalonePage forgotPasswordPinPage" data-theme="b" data-require="scripts/forgotpasswordpin,emby-input,emby-button">
|
||||
<div data-role="page" class="page standalonePage forgotPasswordPinPage" data-theme="b">
|
||||
|
||||
<div data-role="content">
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
});
|
@ -1,6 +1,6 @@
|
||||
define(['jQuery'], function ($) {
|
||||
define([], function () {
|
||||
|
||||
function processForgotPasswordResult(page, result) {
|
||||
function processForgotPasswordResult(result) {
|
||||
|
||||
if (result.Success) {
|
||||
|
||||
@ -31,31 +31,25 @@
|
||||
return;
|
||||
}
|
||||
|
||||
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/Pin'),
|
||||
dataType: 'json',
|
||||
data: {
|
||||
Pin: $('#txtPin', page).val()
|
||||
}
|
||||
type: 'POST',
|
||||
url: ApiClient.getUrl('Users/ForgotPassword/Pin'),
|
||||
dataType: 'json',
|
||||
data: {
|
||||
Pin: view.querySelector('#txtPin').value
|
||||
}
|
||||
|
||||
}).then(function (result) {
|
||||
}).then(processForgotPasswordResult);
|
||||
|
||||
processForgotPasswordResult(page, result);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageinit', '.forgotPasswordPinPage', function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('form', page).off('submit', onSubmit).on('submit', onSubmit);
|
||||
});
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||
};
|
||||
});
|
@ -58,7 +58,7 @@
|
||||
showItemCounts: true,
|
||||
centerText: true,
|
||||
lazy: true,
|
||||
overlayPlayButton: true
|
||||
overlayMoreButton: true
|
||||
});
|
||||
}
|
||||
else if (viewStyle == "ThumbCard") {
|
||||
@ -93,7 +93,7 @@
|
||||
centerText: true,
|
||||
showItemCounts: true,
|
||||
lazy: true,
|
||||
overlayPlayButton: true
|
||||
overlayMoreButton: true
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,8 @@
|
||||
require(['components/filterdialog/filterdialog'], function (filterDialogFactory) {
|
||||
|
||||
var filterDialog = new filterDialogFactory({
|
||||
query: getQuery(tabContent)
|
||||
query: getQuery(tabContent),
|
||||
mode: 'movies'
|
||||
});
|
||||
|
||||
Events.on(filterDialog, 'filterchange', function () {
|
||||
|
@ -621,7 +621,7 @@ var Dashboard = {
|
||||
headerHtml += '</a>';
|
||||
|
||||
headerHtml += '</div>';
|
||||
$(page).prepend(headerHtml);
|
||||
page.insertAdjacentHTML('afterbegin', headerHtml);
|
||||
}
|
||||
},
|
||||
|
||||
@ -2528,15 +2528,17 @@ var AppInfo = {};
|
||||
|
||||
defineRoute({
|
||||
path: '/forgotpassword.html',
|
||||
dependencies: [],
|
||||
anonymous: true
|
||||
dependencies: ['emby-input', 'emby-button'],
|
||||
anonymous: true,
|
||||
controller: 'scripts/forgotpassword'
|
||||
});
|
||||
|
||||
defineRoute({
|
||||
path: '/forgotpasswordpin.html',
|
||||
dependencies: [],
|
||||
dependencies: ['emby-input', 'emby-button'],
|
||||
autoFocus: false,
|
||||
anonymous: true
|
||||
anonymous: true,
|
||||
controller: 'scripts/forgotpasswordpin'
|
||||
});
|
||||
|
||||
defineRoute({
|
||||
|
@ -58,7 +58,7 @@
|
||||
showItemCounts: true,
|
||||
centerText: true,
|
||||
lazy: true,
|
||||
overlayPlayButton: true
|
||||
overlayMoreButton: true
|
||||
});
|
||||
}
|
||||
else if (viewStyle == "ThumbCard") {
|
||||
@ -93,7 +93,7 @@
|
||||
centerText: true,
|
||||
showItemCounts: true,
|
||||
lazy: true,
|
||||
overlayPlayButton: true
|
||||
overlayMoreButton: true
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user