diff --git a/dashboard-ui/components/collectioneditor/collectioneditor.js b/dashboard-ui/components/collectioneditor/collectioneditor.js index 186fb1dd1f..6fe88da392 100644 --- a/dashboard-ui/components/collectioneditor/collectioneditor.js +++ b/dashboard-ui/components/collectioneditor/collectioneditor.js @@ -1,4 +1,4 @@ -define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-input', 'paper-fab'], function () { +define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-input', 'paper-fab'], function (paperDialogHelper) { function onSubmit() { Dashboard.showLoadingMsg(); @@ -39,7 +39,7 @@ var id = result.Id; - PaperDialogHelper.close(dlg); + paperDialogHelper.close(dlg); redirectToCollection(id); }); @@ -71,7 +71,7 @@ Dashboard.hideLoadingMsg(); - PaperDialogHelper.close(dlg); + paperDialogHelper.close(dlg); Dashboard.alert(Globalize.translate('MessageItemsAdded')); }); @@ -192,7 +192,7 @@ items = items || []; - var dlg = PaperDialogHelper.createDialog({ + var dlg = paperDialogHelper.createDialog({ size: 'small' }); @@ -217,11 +217,11 @@ $(dlg).on('iron-overlay-closed', onDialogClosed); - PaperDialogHelper.openWithHash(dlg, 'collectioneditor'); + paperDialogHelper.open(dlg); $('.btnCloseDialog', dlg).on('click', function () { - PaperDialogHelper.close(dlg); + paperDialogHelper.close(dlg); }); }; } diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index 40c57de704..d4f88f4468 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,4 @@ -define(['components/paperdialoghelper', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function () { +define(['components/paperdialoghelper', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (paperDialogHelper) { var systemInfo; function getSystemInfo() { @@ -213,7 +213,7 @@ getSystemInfo().then(function (systemInfo) { - var dlg = PaperDialogHelper.createDialog({ + var dlg = paperDialogHelper.createDialog({ theme: 'a', size: 'medium' }); @@ -242,11 +242,11 @@ }); $(dlg).on('iron-overlay-closed', onDialogClosed); - PaperDialogHelper.openWithHash(dlg, 'directorybrowser'); + paperDialogHelper.open(dlg); $('.btnCloseDialog', dlg).on('click', function () { - PaperDialogHelper.close(dlg); + paperDialogHelper.close(dlg); }); currentDialog = dlg; @@ -264,7 +264,7 @@ self.close = function () { if (currentDialog) { - PaperDialogHelper.close(currentDialog); + paperDialogHelper.close(currentDialog); } }; diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index f9afdd10d1..7af2ebf684 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -1,4 +1,4 @@ -define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-fab'], function () { +define(['components/paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-fab'], function (paperDialogHelper) { var currentItemId; var currentItemType; @@ -131,7 +131,7 @@ hasChanges = true; var dlg = $(page).parents('paper-dialog')[0]; - PaperDialogHelper.close(dlg); + paperDialogHelper.close(dlg); }); } @@ -271,7 +271,7 @@ currentItemId = itemId; currentItemType = itemType; - var dlg = PaperDialogHelper.createDialog(); + var dlg = paperDialogHelper.createDialog(); var html = ''; html += '