diff --git a/dashboard-ui/plugincatalog.html b/dashboard-ui/plugincatalog.html index 72bceeca3a..90c2979990 100644 --- a/dashboard-ui/plugincatalog.html +++ b/dashboard-ui/plugincatalog.html @@ -14,13 +14,15 @@ Automatic Updates -
Displaying plugins for:
-
- MB Server - MB Theatre - MB Classic - -
+
+
+ MB Server + MB Theatre + MB Classic +
+
+ +
diff --git a/dashboard-ui/scripts/plugincatalogpage.js b/dashboard-ui/scripts/plugincatalogpage.js index d2b4a218d6..4f7d68491f 100644 --- a/dashboard-ui/scripts/plugincatalogpage.js +++ b/dashboard-ui/scripts/plugincatalogpage.js @@ -80,40 +80,44 @@ Dashboard.hideLoadingMsg(); } - function selectTab(elem) { + function selectTab(elem, page) { + $("#pluginTabs a").removeClass("ui-btn-active"); $(elem).addClass("ui-btn-active"); query.TargetSystems = $(elem).attr("rel"); - reloadList($.mobile.activePage); + reloadList(page); } $(document).on('pageinit', "#pluginCatalogPage", function () { var page = this; - $('.chkPremiumFilter', this).on('change', function () { + $('.chkPremiumFilter', page).on('change', function () { if (this.checked) { query.IsPremium = true; } else { query.IsPremium = null; } - + reloadList(page); }); - $('#pluginTabs a', this).each(function(){ + $('#pluginTabs a', page).each(function () { $(this).on('click', function () { - selectTab(this); + selectTab(this, page); }); }); }).on('pageshow', "#pluginCatalogPage", function () { - selectTab($("#pluginTabs a.ui-btn-active")); + + var page = this; + + selectTab($("#pluginTabs a.ui-btn-active"), page); // Reset form values using the last used query - $('.chkPremiumFilter', this).each(function () { + $('.chkPremiumFilter', page).each(function () { var filters = query.IsPremium || false;