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,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">
|
<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">
|
<div data-role="content">
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
define(['jQuery'], function ($) {
|
define([], function () {
|
||||||
|
|
||||||
function processForgotPasswordResult(page, result) {
|
function processForgotPasswordResult(result) {
|
||||||
|
|
||||||
if (result.Action == 'ContactAdmin') {
|
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',
|
type: 'POST',
|
||||||
url: ApiClient.getUrl('Users/ForgotPassword'),
|
url: ApiClient.getUrl('Users/ForgotPassword'),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
EnteredUsername: $('#txtName', page).val()
|
EnteredUsername: view.querySelector('#txtName').value
|
||||||
}
|
}
|
||||||
|
|
||||||
}).then(function (result) {
|
}).then(processForgotPasswordResult);
|
||||||
|
|
||||||
processForgotPasswordResult(page, result);
|
e.preventDefault();
|
||||||
});
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
$(document).on('pageinit', '#forgotPasswordPage', function () {
|
|
||||||
|
|
||||||
var page = this;
|
|
||||||
$('.forgotPasswordForm', page).off('submit', onSubmit).on('submit', onSubmit);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
|
@ -1,6 +1,6 @@
|
||||||
define(['jQuery'], function ($) {
|
define([], function () {
|
||||||
|
|
||||||
function processForgotPasswordResult(page, result) {
|
function processForgotPasswordResult(result) {
|
||||||
|
|
||||||
if (result.Success) {
|
if (result.Success) {
|
||||||
|
|
||||||
|
@ -31,31 +31,25 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
return function (view, params) {
|
||||||
|
|
||||||
var page = $(this).parents('.page');
|
function onSubmit(e) {
|
||||||
|
|
||||||
ApiClient.ajax({
|
ApiClient.ajax({
|
||||||
|
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: ApiClient.getUrl('Users/ForgotPassword/Pin'),
|
url: ApiClient.getUrl('Users/ForgotPassword/Pin'),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
Pin: $('#txtPin', page).val()
|
Pin: view.querySelector('#txtPin').value
|
||||||
}
|
}
|
||||||
|
|
||||||
}).then(function (result) {
|
}).then(processForgotPasswordResult);
|
||||||
|
|
||||||
processForgotPasswordResult(page, result);
|
e.preventDefault();
|
||||||
});
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$(document).on('pageinit', '.forgotPasswordPinPage', function () {
|
|
||||||
|
|
||||||
var page = this;
|
|
||||||
|
|
||||||
$('form', page).off('submit', onSubmit).on('submit', onSubmit);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||||
|
};
|
||||||
});
|
});
|
|
@ -58,7 +58,7 @@
|
||||||
showItemCounts: true,
|
showItemCounts: true,
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayPlayButton: true
|
overlayMoreButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (viewStyle == "ThumbCard") {
|
else if (viewStyle == "ThumbCard") {
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
centerText: true,
|
centerText: true,
|
||||||
showItemCounts: true,
|
showItemCounts: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayPlayButton: true
|
overlayMoreButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,8 @@
|
||||||
require(['components/filterdialog/filterdialog'], function (filterDialogFactory) {
|
require(['components/filterdialog/filterdialog'], function (filterDialogFactory) {
|
||||||
|
|
||||||
var filterDialog = new filterDialogFactory({
|
var filterDialog = new filterDialogFactory({
|
||||||
query: getQuery(tabContent)
|
query: getQuery(tabContent),
|
||||||
|
mode: 'movies'
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.on(filterDialog, 'filterchange', function () {
|
Events.on(filterDialog, 'filterchange', function () {
|
||||||
|
|
|
@ -621,7 +621,7 @@ var Dashboard = {
|
||||||
headerHtml += '</a>';
|
headerHtml += '</a>';
|
||||||
|
|
||||||
headerHtml += '</div>';
|
headerHtml += '</div>';
|
||||||
$(page).prepend(headerHtml);
|
page.insertAdjacentHTML('afterbegin', headerHtml);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2528,15 +2528,17 @@ var AppInfo = {};
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/forgotpassword.html',
|
path: '/forgotpassword.html',
|
||||||
dependencies: [],
|
dependencies: ['emby-input', 'emby-button'],
|
||||||
anonymous: true
|
anonymous: true,
|
||||||
|
controller: 'scripts/forgotpassword'
|
||||||
});
|
});
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/forgotpasswordpin.html',
|
path: '/forgotpasswordpin.html',
|
||||||
dependencies: [],
|
dependencies: ['emby-input', 'emby-button'],
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
anonymous: true
|
anonymous: true,
|
||||||
|
controller: 'scripts/forgotpasswordpin'
|
||||||
});
|
});
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
showItemCounts: true,
|
showItemCounts: true,
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayPlayButton: true
|
overlayMoreButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (viewStyle == "ThumbCard") {
|
else if (viewStyle == "ThumbCard") {
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
centerText: true,
|
centerText: true,
|
||||||
showItemCounts: true,
|
showItemCounts: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayPlayButton: true
|
overlayMoreButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue