diff --git a/dashboard-ui/scripts/autoorganizelog.js b/dashboard-ui/scripts/autoorganizelog.js index 8f2ab1a013..33e0944a88 100644 --- a/dashboard-ui/scripts/autoorganizelog.js +++ b/dashboard-ui/scripts/autoorganizelog.js @@ -30,7 +30,7 @@ })[0]; - var message = 'The following file will be deleted:
' + item.OriginalPath + '
Are you sure you wish to proceed?
'; + var message = 'The following file will be deleted:' + item.OriginalPath + '
Are you sure you wish to proceed?
'; Dashboard.confirm(message, "Delete File", function (confirmResult) { @@ -79,7 +79,7 @@ $('#txtEndingEpisode', popup).val(item.ExtractedEndingEpisodeNumber); $('#hfResultId', popup).val(item.Id); - + if (item.ExtractedName) { $('#fldRememberCorrection', popup).hide(); } else { @@ -115,7 +115,15 @@ return; } - var message = 'The following file will be moved from:' + item.OriginalPath + '
to:
' + item.TargetPath + '
Are you sure you wish to proceed?
'; + var message = 'The following file will be moved from:' + item.OriginalPath + '
to:
' + item.TargetPath + '
'; + + if (item.DuplicatePaths.length) { + message += 'In addition the following dupliates will be deleted:
'; + + message += '' + item.DuplicatePaths.join('
') + '
Are you sure you wish to proceed?
'; Dashboard.confirm(message, "Organize File", function (confirmResult) { diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 5055941c1e..e8ed65f3b7 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -74,7 +74,7 @@ html += '' + (view == 'tv' ? selectedHtml : '') + 'TV'; } - if (liveTvInfo.ActiveServiceName) { + if (liveTvInfo.EnabledUsers.indexOf(user.Id) != -1) { html += '' + (view == 'livetv' ? selectedHtml : '') + 'Live TV'; } @@ -146,7 +146,7 @@ ]); } - if (liveTvInfo.ActiveServiceName) { + if (liveTvInfo.EnabledUsers.indexOf(Dashboard.getCurrentUserId()) != -1) { html += getCollapsibleHtml('Live TV', [ { text: 'Suggested', href: 'livetvsuggested.html' }, @@ -223,7 +223,7 @@ var link = links[i]; var href = selectedIndex == i ? '#' : link.href; - + html += '