1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

support custom ordering of user views

This commit is contained in:
Luke Pulverenti 2014-08-18 21:42:53 -04:00
parent 4685d0f254
commit 46f50bae6a
11 changed files with 203 additions and 206 deletions

View file

@ -367,31 +367,25 @@
var plugin = plugins[i];
if (i > 0) {
html += '<li data-mini="true" class="localReaderOption" data-pluginname="' + plugin.Name + '">';
html += '<li data-mini="true" class="localReaderOption" data-pluginname="' + plugin.Name + '">';
if (i > 0) {
html += '<a href="#" style="font-size:13px;font-weight:normal;">' + plugin.Name + '</a>';
html += '<a class="btnLocalReaderUp btnLocalReaderMove" data-pluginindex="' + i + '" href="#" style="font-size:13px;font-weight:normal;" data-icon="arrow-u">' + Globalize.translate('ButtonUp') + '</a>';
html += '</li>';
}
else if (plugins.length > 1) {
html += '<li data-mini="true" class="localReaderOption" data-pluginname="' + plugin.Name + '">';
html += '<a href="#" style="font-size:13px;font-weight:normal;">' + plugin.Name + '</a>';
html += '<a class="btnLocalReaderDown btnLocalReaderMove" data-pluginindex="' + i + '" href="#" style="font-size:13px;font-weight:normal;" data-icon="arrow-d">' + Globalize.translate('ButtonDown') + '</a>';
html += '</li>';
}
else {
html += '<li data-mini="true" class="localReaderOption" data-pluginname="' + plugin.Name + '">';
html += plugin.Name;
html += '</li>';
}
html += '</li>';
}
html += '</ul>';