mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sync updates
This commit is contained in:
parent
a174be36a9
commit
905733c18c
6 changed files with 38 additions and 26 deletions
|
@ -805,6 +805,7 @@
|
|||
text = "Please support Media Browser.";
|
||||
|
||||
$('.supporterIconContainer', page).html('<a class="imageLink supporterIcon" href="supporter.html" title="' + text + '"><img src="' + imgUrl + '" style="height:32px;vertical-align: middle; margin-right: .5em;" /><span style="position:relative;top:2px;text-decoration:none;">' + text + '</span></a>');
|
||||
$('.supporterIconContainer', page).hide();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
self.isFlyout = true;
|
||||
|
||||
var startIndex = 0;
|
||||
var limit = 4;
|
||||
var limit = 40;
|
||||
var elem = $('.notificationsFlyoutlist');
|
||||
|
||||
refreshNotifications(startIndex, limit, elem, null, false).done(function() {
|
||||
|
|
|
@ -54,6 +54,8 @@
|
|||
} else {
|
||||
$('.channelAccessContainer', page).hide();
|
||||
}
|
||||
|
||||
$('#chkEnableAllChannels', page).checked(true).checkboxradio('refresh').trigger('change');
|
||||
}
|
||||
|
||||
function loadUser(page) {
|
||||
|
@ -87,18 +89,14 @@
|
|||
|
||||
}).get();
|
||||
|
||||
var allChannels = $('.chkChannel', page);
|
||||
var enabledChannels = $('.chkChannel:checked', page).map(function () {
|
||||
user.Policy.EnableAllChannels = $('#chkEnableAllChannels', page).checked();
|
||||
user.Policy.EnabledChannels = user.Policy.EnableAllChannels ?
|
||||
[] :
|
||||
$('.chkChannel:checked', page).map(function () {
|
||||
|
||||
return this.getAttribute('data-id');
|
||||
return this.getAttribute('data-id');
|
||||
|
||||
}).get();
|
||||
|
||||
user.Policy.EnableAllChannels = enabledChannels.length == allChannels.length;
|
||||
|
||||
if (!user.Policy.EnableAllChannels) {
|
||||
user.Policy.EnabledChannels = enabledChannels;
|
||||
}
|
||||
}).get();
|
||||
|
||||
ApiClient.updateUserPolicy(user.Id, user.Policy).done(function () {
|
||||
Dashboard.navigate("useredit.html?userId=" + user.Id);
|
||||
|
@ -130,7 +128,21 @@
|
|||
|
||||
window.NewUserPage = new newUserPage();
|
||||
|
||||
$(document).on('pageshow', "#newUserPage", function () {
|
||||
$(document).on('pageinit', "#newUserPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('#chkEnableAllChannels', page).on('change', function () {
|
||||
|
||||
if (this.checked) {
|
||||
$('.channelAccessListContainer', page).hide();
|
||||
} else {
|
||||
$('.channelAccessListContainer', page).show();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}).on('pageshow', "#newUserPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue