diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 6f62c20ab..311442bf6 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -728,8 +728,8 @@ emby-collapsible > .style-scope { } .ui-body-a .emby-collapsible-button { - border: 1px solid #ddd; - background-color: #f2f2f2; + border: 0; + background-color: #e8e8e8; text-transform: none; } @@ -740,15 +740,14 @@ emby-collapsible > .style-scope { font-weight: 500; } -.ui-body-a .emby-collapsible-content { - border: 1px solid #ddd; - border-width: 0 1px 1px 1px; +.ui-body-a .emby-collapsible-content, .ui-body-a .collapseContent { + border-width: 0; padding: 1em 1.25em; background-color: #fff; } .ui-body-b .emby-collapsible-button { - border: 1px solid #222; + border: 0; background-color: #333; text-transform: none; } @@ -760,10 +759,10 @@ emby-collapsible > .style-scope { font-weight: 500; } -.ui-body-b .emby-collapsible-content { - border: 1px solid #252525; - border-width: 0 1px 1px 1px; +.ui-body-b .emby-collapsible-content, .ui-body-b .collapseContent { + border-width: 0; padding: 1em 1.25em; + background-color: #222; } #editItemMetadataPage #txtOverview .paper-input-input { diff --git a/dashboard-ui/scripts/syncjob.js b/dashboard-ui/scripts/syncjob.js index 756681d01..3ddd08fb4 100644 --- a/dashboard-ui/scripts/syncjob.js +++ b/dashboard-ui/scripts/syncjob.js @@ -1,4 +1,4 @@ -define(['jQuery', 'datetime', 'paper-progress', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light', 'emby-button'], function ($, datetime) { +define(['jQuery', 'datetime', 'paper-progress', 'listViewStyle', 'paper-icon-button-light', 'emby-button'], function ($, datetime) { function renderJob(page, job, dialogOptions) { @@ -41,7 +41,7 @@ var html = ''; - html += ''; + html += '
'; var hasActions = ['Queued', 'Cancelled', 'Failed', 'ReadyToTransfer', 'Transferring', 'Converting', 'Synced'].indexOf(jobItem.Status) != -1; @@ -58,22 +58,22 @@ } if (imgUrl) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } - html += ''; + html += '
'; html += '
'; html += jobItem.ItemName; html += '
'; if (jobItem.Status == 'Failed') { - html += '
'; + html += '
'; } else { - html += '
'; + html += '
'; } html += Globalize.translate('SyncJobItemStatus' + jobItem.Status); if (jobItem.Status == 'Synced' && jobItem.IsMarkedForRemoval) { @@ -82,11 +82,11 @@ } html += '
'; - html += '
'; + html += '
'; html += ''; html += '
'; - html += ''; + html += '
'; if (hasActions) { @@ -95,7 +95,7 @@ html += ''; } - html += ''; + html += '
'; return html; } @@ -125,13 +125,26 @@ }); } + function parentWithClass(elem, className) { + + while (!elem.classList || !elem.classList.contains(className)) { + elem = elem.parentNode; + + if (!elem) { + return null; + } + } + + return elem; + } + function showJobItemMenu(elem) { - var page = $(elem).parents('.page'); - var listItem = $(elem).parents('paper-icon-item'); - var jobItemId = listItem.attr('data-itemid'); - var status = listItem.attr('data-status'); - var remove = listItem.attr('data-remove').toLowerCase() == 'true'; + var page = parentWithClass(elem, 'page'); + var listItem = parentWithClass(elem, 'listItem'); + var jobItemId = listItem.getAttribute('data-itemid'); + var status = listItem.getAttribute('data-status'); + var remove = listItem.getAttribute('data-remove').toLowerCase() == 'true'; var menuItems = [];