mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rework settings page
This commit is contained in:
parent
3e9ce24eaf
commit
2548f83871
35 changed files with 1216 additions and 520 deletions
|
@ -61,7 +61,7 @@
|
|||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
var page = $($.mobile.activePage)[0];
|
||||
|
||||
reloadUser(page);
|
||||
}
|
||||
|
@ -246,7 +246,7 @@
|
|||
$('#btnResetEasyPassword', page).hide();
|
||||
}
|
||||
|
||||
$('#chkEnableLocalEasyPassword', page).checked(user.Configuration.EnableLocalPassword).checkboxradio('refresh');
|
||||
page.querySelector('.chkEnableLocalEasyPassword').checked = user.Configuration.EnableLocalPassword;
|
||||
});
|
||||
|
||||
$('#txtCurrentPassword', page).val('');
|
||||
|
@ -277,7 +277,7 @@
|
|||
|
||||
ApiClient.getUser(userId).done(function (user) {
|
||||
|
||||
user.Configuration.EnableLocalPassword = $('#chkEnableLocalEasyPassword', page).checked();
|
||||
user.Configuration.EnableLocalPassword = page.queryselector('.chkEnableLocalEasyPassword').checked;
|
||||
|
||||
ApiClient.updateUserConfiguration(user.Id, user.Configuration).done(function () {
|
||||
|
||||
|
@ -313,7 +313,7 @@
|
|||
|
||||
self.onSubmit = function () {
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
var page = $($.mobile.activePage)[0];
|
||||
|
||||
if ($('#txtNewPassword', page).val() != $('#txtNewPasswordConfirm', page).val()) {
|
||||
|
||||
|
@ -332,7 +332,7 @@
|
|||
|
||||
self.onLocalAccessSubmit = function () {
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
var page = $($.mobile.activePage)[0];
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
|
@ -347,7 +347,7 @@
|
|||
|
||||
var msg = Globalize.translate('PasswordResetConfirmation');
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
var page = $($.mobile.activePage)[0];
|
||||
|
||||
Dashboard.confirm(msg, Globalize.translate('PasswordResetHeader'), function (result) {
|
||||
|
||||
|
@ -377,7 +377,7 @@
|
|||
|
||||
var msg = Globalize.translate('PinCodeResetConfirmation');
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
var page = $($.mobile.activePage)[0];
|
||||
|
||||
Dashboard.confirm(msg, Globalize.translate('HeaderPinCodeReset'), function (result) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue