diff --git a/src/devices/devices.html b/src/devices/devices.html
index f79d7954fd..6997f42eda 100644
--- a/src/devices/devices.html
+++ b/src/devices/devices.html
@@ -1,8 +1,6 @@
-
-
${TabDevices}
@@ -11,9 +9,6 @@
-
-
-
diff --git a/src/scripts/librarymenu.js b/src/scripts/librarymenu.js
index 395834f9d8..c44eb9f6bf 100644
--- a/src/scripts/librarymenu.js
+++ b/src/scripts/librarymenu.js
@@ -189,7 +189,7 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
html += globalize.translate("HeaderAdmin");
html += "";
html += '";
- html += '";
+ html += '";
html += "
";
}
diff --git a/src/scripts/plugincatalogpage.js b/src/scripts/plugincatalogpage.js
index 40d57560b5..f18c56f2f0 100644
--- a/src/scripts/plugincatalogpage.js
+++ b/src/scripts/plugincatalogpage.js
@@ -41,82 +41,31 @@ define(["loading", "libraryMenu", "globalize", "cardStyle", "emby-linkbutton", "
if (!options.targetSystem || plugin.targetSystem == options.targetSystem) {
return "UserInstalled" == plugin.type;
}
-
- return false;
}
-
return false;
});
- availablePlugins = allPlugins.sort(function (a__e, b__r) {
- var aName = a__e.category;
- var bName = b__r.category;
- if (aName > bName) {
+ availablePlugins = allPlugins.sort(function (a, b) {
+ if (a.category > b.category) {
return 1;
- }
-
- if (bName > aName) {
+ } else if (b.category > a.category) {
return -1;
}
-
- aName = a__e.name;
- bName = b__r.name;
-
- if (aName > bName) {
+ if (a.name > b.name) {
return 1;
- }
-
- if (bName > aName) {
+ } else if (b.name > a.name) {
return -1;
}
-
return 0;
});
+
var i__q;
var length;
var plugin;
var currentCategory;
var html = "";
- if (!options.categories) {
- currentCategory = globalize.translate("HeaderTopPlugins");
- html += '
';
- html += '
' + currentCategory + "
";
- var topPlugins = allPlugins.slice(0).sort(function (a__t, b__y) {
- if (a__t.installs > b__y.installs) {
- return -1;
- }
-
- if (b__y.installs > a__t.installs) {
- return 1;
- }
-
- var aName = a__t.name;
- var bName = b__y.name;
-
- if (aName > bName) {
- return 1;
- }
-
- if (bName > aName) {
- return -1;
- }
-
- return 0;
- });
- html += '
';
- var limit = screen.availWidth >= 1920 ? 15 : 12;
-
- for (i__q = 0, length = Math.min(topPlugins.length, limit); i__q < length; i__q++) {
- html += getPluginHtml(topPlugins[i__q], options, installedPlugins);
- }
-
- html += "
";
- html += "
";
- }
-
var hasOpenTag = false;
-
for (currentCategory = null, false === options.showCategory && (html += '
', hasOpenTag = true), i__q = 0, length = availablePlugins.length; i__q < length; i__q++) {
plugin = availablePlugins[i__q];
var category = plugin.categoryDisplayName;