diff --git a/dashboard-ui/scripts/channelitems.js b/dashboard-ui/scripts/channelitems.js index 263c910aff..6571c63822 100644 --- a/dashboard-ui/scripts/channelitems.js +++ b/dashboard-ui/scripts/channelitems.js @@ -55,6 +55,7 @@ var maxPageSize = features.MaxPageSize; + var query = getQuery(); if (maxPageSize) { query.Limit = Math.min(maxPageSize, query.Limit || maxPageSize); } diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index a310d5e258..6ac05a30b8 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -430,7 +430,7 @@ var Dashboard = { elem = $('

').appendTo(parentElem); } - var onclick = removeOnHide ? "$(\"#" + options.id + "\").trigger(\"notification.remove\").remove();" : "$(\"#" + options.id + "\").trigger(\"notification.hide\").hide();"; + var onclick = removeOnHide ? "jQuery(\"#" + options.id + "\").trigger(\"notification.remove\").remove();" : "jQuery(\"#" + options.id + "\").trigger(\"notification.hide\").hide();"; if (options.allowHide !== false) { options.html += "" + Globalize.translate('ButtonHide') + "";