From ec45985eb08da65d7f96c8ab690d34b8c53a6ada Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 17 Sep 2015 21:51:22 -0400 Subject: [PATCH] update series timers --- .../imagedownloader/imagedownloader.js | 5 ++- .../imagedownloader.template.html | 12 ++---- .../components/imageeditor/imageeditor.js | 27 +++++++----- .../imageeditor/imageeditor.template.html | 8 +++- .../components/imageuploader/imageuploader.js | 3 ++ .../subtitleeditor/subtitleeditor.js | 3 ++ dashboard-ui/css/metadataeditor.css | 41 ++++++++++++++++--- dashboard-ui/scripts/mediacontroller.js | 3 +- 8 files changed, 73 insertions(+), 29 deletions(-) diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index 95ae7ff207..a66b7f3642 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -6,7 +6,7 @@ var hasChanges = false; // These images can be large and we're seeing memory problems in safari - var browsableImagePageSize = $.browser.safari ? 6 : 12; + var browsableImagePageSize = $.browser.safari ? 6 : 10; var browsableImageStartIndex = 0; var browsableImageType = 'Primary'; @@ -275,10 +275,13 @@ dlg.setAttribute('role', 'alertdialog'); // without this safari will scroll the background instead of the dialog contents dlg.setAttribute('modal', 'modal'); + // seeing max call stack size exceeded in the debugger with this + dlg.setAttribute('noAutoFocus', 'noAutoFocus'); dlg.entryAnimation = 'scale-up-animation'; dlg.exitAnimation = 'fade-out-animation'; dlg.classList.add('fullscreen-editor-paper-dialog'); dlg.classList.add('ui-body-b'); + dlg.classList.add('smoothScrollY'); var html = ''; html += '

'; diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.template.html b/dashboard-ui/components/imagedownloader/imagedownloader.template.html index 33cbfd589c..ee29a300d1 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.template.html +++ b/dashboard-ui/components/imagedownloader/imagedownloader.template.html @@ -1,17 +1,13 @@ 
- -
-
-
- -
-
- diff --git a/dashboard-ui/components/imageeditor/imageeditor.js b/dashboard-ui/components/imageeditor/imageeditor.js index 86bd396493..0b1d5437ee 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.js +++ b/dashboard-ui/components/imageeditor/imageeditor.js @@ -56,17 +56,18 @@ var image = images[i]; html += '
'; + html += '
'; + + var height = 150; + + html += '
'; + + html += '
'; if (image.ImageType !== "Backdrop" && image.ImageType !== "Screenshot") { html += '

' + image.ImageType + '

'; } - var height = 150; - - html += '
'; - - html += '
'; - if (image.Width && image.Height) { html += '

' + image.Width + ' X ' + image.Height + '

'; } else { @@ -89,9 +90,10 @@ html += ''; } } - - if (imageProviders.length) { - html += ''; + else { + if (imageProviders.length) { + html += ''; + } } html += ''; @@ -99,7 +101,7 @@ html += '
'; html += '
'; - + html += '
'; html += '
'; } @@ -210,7 +212,7 @@ }); $('.btnBrowseAllImages', page).on('click', function () { - showImageDownloader(page, 'Primary'); + showImageDownloader(page, this.getAttribute('data-imagetype') || 'Primary'); }); } @@ -233,10 +235,13 @@ dlg.setAttribute('role', 'alertdialog'); // without this safari will scroll the background instead of the dialog contents dlg.setAttribute('modal', 'modal'); + // seeing max call stack size exceeded in the debugger with this + dlg.setAttribute('noAutoFocus', 'noAutoFocus'); dlg.entryAnimation = 'scale-up-animation'; dlg.exitAnimation = 'fade-out-animation'; dlg.classList.add('fullscreen-editor-paper-dialog'); dlg.classList.add('ui-body-b'); + dlg.classList.add('smoothScrollY'); var html = ''; html += '

'; diff --git a/dashboard-ui/components/imageeditor/imageeditor.template.html b/dashboard-ui/components/imageeditor/imageeditor.template.html index f61fac363d..8073ad58fa 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.template.html +++ b/dashboard-ui/components/imageeditor/imageeditor.template.html @@ -12,7 +12,7 @@