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

update auto-organize

This commit is contained in:
Luke Pulverenti 2016-02-09 12:13:38 -05:00
parent 8aa5acfee4
commit d665b12b82
4 changed files with 48 additions and 24 deletions

View file

@ -19,8 +19,11 @@
populateList(page, infos);
Dashboard.hideLoadingMsg();
}, onApiFailure);
}, function () {
Dashboard.hideLoadingMsg();
});
}
function populateList(page, result) {
@ -55,8 +58,7 @@
if (info.OrganizerType != currentType) {
currentType = info.OrganizerType;
if (html.length > 0)
{
if (html.length > 0) {
html += "</ul>";
}
@ -74,7 +76,7 @@
html += "<p>" + info.MatchStrings[n] + "</p>";
html += "<a id='btnDeleteMatchEntry" + info.Id + "' class='btnDeleteMatchEntry' href='#' data-id='" + info.Id + "' data-matchstring='" + info.MatchStrings[n] + "' data-icon='delete'>" + Globalize.translate('ButtonDelete') + "</a>";
html += "<a id='btnDeleteMatchEntry" + info.Id + "' class='btnDeleteMatchEntry' href='#' data-id='" + info.Id + "' data-matchstring='" + info.MatchStrings[n] + "' data-icon='delete'>" + Globalize.translate('ButtonDelete') + "</a>";
html += "</a>";
@ -92,8 +94,7 @@
Dashboard.hideLoadingMsg();
Dashboard.alert({
title: Globalize.translate('AutoOrganizeError'),
message: Globalize.translate('ErrorOrganizingFileWithErrorCode', e.getResponseHeader("X-Application-Error-Code"))
message: Globalize.translate('DefaultErrorMessage')
});
}