diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js
index 8726a75d32..dc0636add3 100644
--- a/dashboard-ui/scripts/dashboardpage.js
+++ b/dashboard-ui/scripts/dashboardpage.js
@@ -805,6 +805,7 @@
text = "Please support Media Browser.";
$('.supporterIconContainer', page).html('
' + text + '');
+ $('.supporterIconContainer', page).hide();
}
},
diff --git a/dashboard-ui/scripts/notifications.js b/dashboard-ui/scripts/notifications.js
index d8f26b68ca..985ef28fab 100644
--- a/dashboard-ui/scripts/notifications.js
+++ b/dashboard-ui/scripts/notifications.js
@@ -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() {
diff --git a/dashboard-ui/scripts/usernew.js b/dashboard-ui/scripts/usernew.js
index 0e94d2701c..3d1e3bb0a9 100644
--- a/dashboard-ui/scripts/usernew.js
+++ b/dashboard-ui/scripts/usernew.js
@@ -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;
diff --git a/dashboard-ui/usernew.html b/dashboard-ui/usernew.html
index 3d350516e9..288d732c4c 100644
--- a/dashboard-ui/usernew.html
+++ b/dashboard-ui/usernew.html
@@ -28,14 +28,19 @@