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

paperdialoghelper -> dialogHelper

This commit is contained in:
Luke Pulverenti 2016-03-23 15:03:17 -04:00
parent 822553d966
commit ae421fa193
37 changed files with 168 additions and 163 deletions

View file

@ -16,12 +16,12 @@
}, },
"devDependencies": {}, "devDependencies": {},
"ignore": [], "ignore": [],
"version": "1.1.80", "version": "1.1.81",
"_release": "1.1.80", "_release": "1.1.81",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "1.1.80", "tag": "1.1.81",
"commit": "babf2d95fc689946e18922a8c9a782ad40d250fa" "commit": "73f83352f8263cc516f9756c39791a0e38031c27"
}, },
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git", "_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.1.5", "_target": "~1.1.5",

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'layoutManager', 'dialogText', 'paper-button', 'css!./actionsheet'], function (paperdialoghelper, layoutManager, dialogText) { define(['dialogHelper', 'layoutManager', 'dialogText', 'paper-button', 'css!./actionsheet'], function (dialogHelper, layoutManager, dialogText) {
function parentWithClass(elem, className) { function parentWithClass(elem, className) {
@ -120,7 +120,7 @@
dialogOptions.autoFocus = false; dialogOptions.autoFocus = false;
} }
var dlg = paperdialoghelper.createDialog(dialogOptions); var dlg = dialogHelper.createDialog(dialogOptions);
dlg.classList.add('actionSheet'); dlg.classList.add('actionSheet');
@ -213,7 +213,7 @@
var selectedId = actionSheetMenuItem.getAttribute('data-id'); var selectedId = actionSheetMenuItem.getAttribute('data-id');
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
// Add a delay here to allow the click animation to finish, for nice effect // Add a delay here to allow the click animation to finish, for nice effect
setTimeout(function () { setTimeout(function () {
@ -229,7 +229,7 @@
}); });
paperdialoghelper.open(dlg); dialogHelper.open(dlg);
if (pos) { if (pos) {
dlg.style.position = 'fixed'; dlg.style.position = 'fixed';

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./../prompt/icons.html', 'css!./../prompt/style.css', 'paper-button', 'paper-input'], function (paperdialoghelper, layoutManager, dialogText) { define(['dialogHelper', 'layoutManager', 'dialogText', 'html!./../prompt/icons.html', 'css!./../prompt/style.css', 'paper-button', 'paper-input'], function (dialogHelper, layoutManager, dialogText) {
return function (options) { return function (options) {
@ -27,7 +27,7 @@ define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./../prompt/ic
dialogOptions.exitAnimationDuration = 200; dialogOptions.exitAnimationDuration = 200;
} }
var dlg = paperdialoghelper.createDialog(dialogOptions); var dlg = dialogHelper.createDialog(dialogOptions);
dlg.classList.add('promptDialog'); dlg.classList.add('promptDialog');
@ -73,9 +73,9 @@ define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./../prompt/ic
dlg.querySelector('.btnSubmit').addEventListener('click', function (e) { dlg.querySelector('.btnSubmit').addEventListener('click', function (e) {
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
}); });
return paperdialoghelper.open(dlg); return dialogHelper.open(dlg);
}; };
}); });

View file

@ -39,7 +39,7 @@ define(['layoutManager', 'dialogText'], function (layoutManager, dialogText) {
}); });
} }
function showConfirmInternal(options, paperdialoghelper, resolve, reject) { function showConfirmInternal(options, dialogHelper, resolve, reject) {
var dialogOptions = { var dialogOptions = {
removeOnClose: true removeOnClose: true
@ -59,7 +59,7 @@ define(['layoutManager', 'dialogText'], function (layoutManager, dialogText) {
dialogOptions.autoFocus = false; dialogOptions.autoFocus = false;
} }
var dlg = paperdialoghelper.createDialog(dialogOptions); var dlg = dialogHelper.createDialog(dialogOptions);
var html = ''; var html = '';
if (options.title) { if (options.title) {
@ -84,14 +84,14 @@ define(['layoutManager', 'dialogText'], function (layoutManager, dialogText) {
var confirmed = false; var confirmed = false;
dlg.querySelector('.btnConfirm').addEventListener('click', function () { dlg.querySelector('.btnConfirm').addEventListener('click', function () {
confirmed = true; confirmed = true;
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.querySelector('.btnCancel').addEventListener('click', function () { dlg.querySelector('.btnCancel').addEventListener('click', function () {
confirmed = false; confirmed = false;
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
}); });
paperdialoghelper.open(dlg).then(function () { dialogHelper.open(dlg).then(function () {
if (confirmed) { if (confirmed) {
resolve(); resolve();
@ -104,8 +104,8 @@ define(['layoutManager', 'dialogText'], function (layoutManager, dialogText) {
function showConfirm(options) { function showConfirm(options) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
require(['paperdialoghelper', 'paper-button'], function (paperdialoghelper) { require(['dialogHelper', 'paper-button'], function (dialogHelper) {
showConfirmInternal(options, paperdialoghelper, resolve, reject); showConfirmInternal(options, dialogHelper, resolve, reject);
}); });
}); });
} }

View file

@ -1,4 +1,4 @@
.paperDialog { .dialog {
margin: 0; margin: 0;
border-radius: 4px; border-radius: 4px;
z-index: 999999 !important; z-index: 999999 !important;
@ -15,7 +15,7 @@
padding: 0; padding: 0;
} }
.paperDialog.fixedSize { .dialog.fixedSize {
position: fixed !important; position: fixed !important;
top: 0 !important; top: 0 !important;
bottom: 0 !important; bottom: 0 !important;
@ -28,31 +28,31 @@
width: auto; width: auto;
} }
.paperDialog.scrollY { .dialog.scrollY {
overflow-y: auto; overflow-y: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
overflow-x: hidden; overflow-x: hidden;
} }
.paperDialog.hiddenScroll::-webkit-scrollbar { .dialog.hiddenScroll::-webkit-scrollbar {
display: none; display: none;
} }
.paperDialog.hiddenScroll { .dialog.hiddenScroll {
-ms-overflow-style: none; -ms-overflow-style: none;
overflow: -moz-scrollbars-none; overflow: -moz-scrollbars-none;
} }
@media all and (min-width: 1280px) and (min-height: 720px) { @media all and (min-width: 1280px) and (min-height: 720px) {
.paperDialog.medium { .dialog.medium {
top: 10% !important; top: 10% !important;
bottom: 10% !important; bottom: 10% !important;
left: 10% !important; left: 10% !important;
right: 10% !important; right: 10% !important;
} }
.paperDialog.small { .dialog.small {
top: 10% !important; top: 10% !important;
bottom: 10% !important; bottom: 10% !important;
left: 20% !important; left: 20% !important;
@ -62,7 +62,7 @@
@media all and (min-width: 1280px) and (min-height: 720px) { @media all and (min-width: 1280px) and (min-height: 720px) {
.paperDialog.fullscreen-border { .dialog.fullscreen-border {
top: 5% !important; top: 5% !important;
bottom: 5% !important; bottom: 5% !important;
left: 5% !important; left: 5% !important;
@ -75,16 +75,16 @@
overflow-y: hidden !important; overflow-y: hidden !important;
} }
.paperDialog > * { .dialog > * {
margin-top: 20px; margin-top: 20px;
padding: 0 24px; padding: 0 24px;
} }
.paperDialog > *:first-child { .dialog > *:first-child {
margin-top: 24px; margin-top: 24px;
} }
.paperDialog .buttons { .dialog .buttons {
position: relative; position: relative;
padding: 8px 8px 8px 24px; padding: 8px 8px 8px 24px;
margin: 0; margin: 0;
@ -117,12 +117,12 @@
opacity: .6; opacity: .6;
} }
.paperDialog::backdrop { .dialog::backdrop {
opacity: 0; opacity: 0;
background-color: #000; background-color: #000;
transition: opacity ease-out 0.2s; transition: opacity ease-out 0.2s;
} }
.paperDialog.opened::backdrop { .dialog.opened::backdrop {
opacity: .6; opacity: .6;
} }

View file

@ -1,6 +1,6 @@
define(['historyManager', 'focusManager', 'browser', 'layoutManager', 'inputManager', 'css!./paperdialoghelper.css'], function (historyManager, focusManager, browser, layoutManager, inputManager) { define(['historyManager', 'focusManager', 'browser', 'layoutManager', 'inputManager', 'css!./dialoghelper.css'], function (historyManager, focusManager, browser, layoutManager, inputManager) {
function paperDialogHashHandler(dlg, hash, resolve) { function dialogHashHandler(dlg, hash, resolve) {
var self = this; var self = this;
self.originalUrl = window.location.href; self.originalUrl = window.location.href;
@ -147,7 +147,7 @@
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
new paperDialogHashHandler(dlg, 'dlg' + new Date().getTime(), resolve); new dialogHashHandler(dlg, 'dlg' + new Date().getTime(), resolve);
}); });
} }
@ -271,6 +271,11 @@
var dlg = document.createElement('dialog'); var dlg = document.createElement('dialog');
// If there's no native dialog support, use a plain div
if (!dlg.showModal) {
dlg = document.createElement('div');
}
dlg.classList.add('hide'); dlg.classList.add('hide');
if (shouldLockDocumentScroll(options)) { if (shouldLockDocumentScroll(options)) {
@ -322,7 +327,7 @@
dlg.exitAnimation = null; dlg.exitAnimation = null;
} }
dlg.classList.add('paperDialog'); dlg.classList.add('dialog');
dlg.classList.add('scrollY'); dlg.classList.add('scrollY');

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./icons.html', 'css!./style.css', 'paper-button', 'paper-input'], function (paperdialoghelper, layoutManager, dialogText) { define(['dialogHelper', 'layoutManager', 'dialogText', 'html!./icons.html', 'css!./style.css', 'paper-button', 'paper-input'], function (dialogHelper, layoutManager, dialogText) {
return function (options) { return function (options) {
@ -27,7 +27,7 @@ define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./icons.html',
dialogOptions.exitAnimationDuration = 200; dialogOptions.exitAnimationDuration = 200;
} }
var dlg = paperdialoghelper.createDialog(dialogOptions); var dlg = dialogHelper.createDialog(dialogOptions);
dlg.classList.add('promptDialog'); dlg.classList.add('promptDialog');
@ -75,7 +75,7 @@ define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./icons.html',
dlg.querySelector('form').addEventListener('submit', function (e) { dlg.querySelector('form').addEventListener('submit', function (e) {
submitValue = dlg.querySelector('.txtPromptValue').value; submitValue = dlg.querySelector('.txtPromptValue').value;
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
e.preventDefault(); e.preventDefault();
return false; return false;
}); });
@ -94,10 +94,10 @@ define(['paperdialoghelper', 'layoutManager', 'dialogText', 'html!./icons.html',
dlg.querySelector('.btnPromptExit').addEventListener('click', function (e) { dlg.querySelector('.btnPromptExit').addEventListener('click', function (e) {
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
}); });
return paperdialoghelper.open(dlg).then(function () { return dialogHelper.open(dlg).then(function () {
var value = submitValue; var value = submitValue;
if (value) { if (value) {
return value; return value;

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'inputManager', 'connectionManager', 'browser', 'css!./style', 'html!./icons', 'iron-icon-set', 'paper-fab', 'paper-icon-button', 'paper-spinner'], function (paperdialoghelper, inputmanager, connectionManager, browser) { define(['dialogHelper', 'inputManager', 'connectionManager', 'browser', 'css!./style', 'html!./icons', 'iron-icon-set', 'paper-fab', 'paper-icon-button', 'paper-spinner'], function (dialogHelper, inputmanager, connectionManager, browser) {
return function (options) { return function (options) {
@ -8,7 +8,7 @@ define(['paperdialoghelper', 'inputManager', 'connectionManager', 'browser', 'cs
function createElements(options) { function createElements(options) {
dlg = paperdialoghelper.createDialog({ dlg = dialogHelper.createDialog({
exitAnimationDuration: options.interactive ? 400 : 800, exitAnimationDuration: options.interactive ? 400 : 800,
size: 'fullscreen' size: 'fullscreen'
}); });
@ -40,7 +40,7 @@ define(['paperdialoghelper', 'inputManager', 'connectionManager', 'browser', 'cs
if (options.interactive) { if (options.interactive) {
dlg.querySelector('.btnSlideshowExit').addEventListener('click', function (e) { dlg.querySelector('.btnSlideshowExit').addEventListener('click', function (e) {
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.querySelector('.btnSlideshowNext').addEventListener('click', nextImage); dlg.querySelector('.btnSlideshowNext').addEventListener('click', nextImage);
dlg.querySelector('.btnSlideshowPrevious').addEventListener('click', previousImage); dlg.querySelector('.btnSlideshowPrevious').addEventListener('click', previousImage);
@ -49,7 +49,7 @@ define(['paperdialoghelper', 'inputManager', 'connectionManager', 'browser', 'cs
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperdialoghelper.open(dlg).then(function () { dialogHelper.open(dlg).then(function () {
stopInterval(); stopInterval();
dlg.parentNode.removeChild(dlg); dlg.parentNode.removeChild(dlg);
@ -167,7 +167,7 @@ define(['paperdialoghelper', 'inputManager', 'connectionManager', 'browser', 'cs
if (options.loop === false) { if (options.loop === false) {
if (swiperInstance.activeIndex >= swiperInstance.slides.length - 1) { if (swiperInstance.activeIndex >= swiperInstance.slides.length - 1) {
paperdialoghelper.close(dlg); dialogHelper.close(dlg);
return; return;
} }
} }
@ -433,7 +433,7 @@ define(['paperdialoghelper', 'inputManager', 'connectionManager', 'browser', 'cs
var dialog = dlg; var dialog = dlg;
if (dialog) { if (dialog) {
paperdialoghelper.close(dialog); dialogHelper.close(dialog);
} }
}; };
} }

View file

@ -32,14 +32,14 @@
"web-component-tester": "^4.0.0", "web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"homepage": "https://github.com/polymerelements/iron-icon", "homepage": "https://github.com/PolymerElements/iron-icon",
"_release": "1.0.8", "_release": "1.0.8",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.8", "tag": "v1.0.8",
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb" "commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
}, },
"_source": "git://github.com/polymerelements/iron-icon.git", "_source": "git://github.com/PolymerElements/iron-icon.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "polymerelements/iron-icon" "_originalSource": "PolymerElements/iron-icon"
} }

View file

@ -36,7 +36,7 @@
"tag": "v1.3.0", "tag": "v1.3.0",
"commit": "1662093611cda3fd29125cdab94a61d3d88093da" "commit": "1662093611cda3fd29125cdab94a61d3d88093da"
}, },
"_source": "git://github.com/polymerelements/iron-selector.git", "_source": "git://github.com/PolymerElements/iron-selector.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "polymerelements/iron-selector" "_originalSource": "PolymerElements/iron-selector"
} }

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-input'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-input'], function (dialogHelper, $) {
function onSubmit() { function onSubmit() {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
@ -39,7 +39,7 @@
var id = result.Id; var id = result.Id;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
redirectToCollection(id); redirectToCollection(id);
}); });
@ -71,7 +71,7 @@
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
require(['toast'], function (toast) { require(['toast'], function (toast) {
toast(Globalize.translate('MessageItemsAdded')); toast(Globalize.translate('MessageItemsAdded'));
@ -191,7 +191,7 @@
items = items || []; items = items || [];
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'small' size: 'small'
}); });
@ -217,11 +217,11 @@
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
$('.btnCancel', dlg).on('click', function () { $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
}; };
} }

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (dialogHelper, $) {
var systemInfo; var systemInfo;
function getSystemInfo() { function getSystemInfo() {
@ -207,7 +207,7 @@
getSystemInfo().then(function (systemInfo) { getSystemInfo().then(function (systemInfo) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'medium' size: 'medium'
}); });
@ -239,11 +239,11 @@
}); });
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
$('.btnCloseDialog', dlg).on('click', function () { $('.btnCloseDialog', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
currentDialog = dlg; currentDialog = dlg;
@ -261,7 +261,7 @@
self.close = function () { self.close = function () {
if (currentDialog) { if (currentDialog) {
paperDialogHelper.close(currentDialog); dialogHelper.close(currentDialog);
} }
}; };

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'paper-checkbox', 'paper-input', 'paper-button'], function (paperDialogHelper) { define(['dialogHelper', 'paper-checkbox', 'paper-input', 'paper-button'], function (dialogHelper) {
var extractedName; var extractedName;
var extractedYear; var extractedYear;
@ -133,7 +133,7 @@
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
dlg.submitted = true; dlg.submitted = true;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}, onApiFailure); }, onApiFailure);
} }
@ -183,7 +183,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
size: 'small' size: 'small'
}); });
@ -202,7 +202,7 @@
dlg.querySelector('.dialogHeaderTitle').innerHTML = Globalize.translate('FileOrganizeManually'); dlg.querySelector('.dialogHeaderTitle').innerHTML = Globalize.translate('FileOrganizeManually');
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.addEventListener('close', function () { dlg.addEventListener('close', function () {
@ -215,7 +215,7 @@
dlg.querySelector('.btnCancel').addEventListener('click', function (e) { dlg.querySelector('.btnCancel').addEventListener('click', function (e) {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.querySelector('form').addEventListener('submit', function (e) { dlg.querySelector('form').addEventListener('submit', function (e) {

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'events', 'browser', 'jQuery', 'paper-checkbox', 'emby-collapsible', 'css!components/filterdialog/style', 'paper-radio-button', 'paper-radio-group'], function (paperDialogHelper, events, browser, $) { define(['dialogHelper', 'events', 'browser', 'jQuery', 'paper-checkbox', 'emby-collapsible', 'css!components/filterdialog/style', 'paper-radio-button', 'paper-radio-group'], function (dialogHelper, events, browser, $) {
function renderOptions(context, selector, cssClass, items, isCheckedFn) { function renderOptions(context, selector, cssClass, items, isCheckedFn) {
@ -507,7 +507,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
modal: false, modal: false,
entryAnimationDuration: 160, entryAnimationDuration: 160,
@ -526,7 +526,7 @@
setVisibility(dlg, options); setVisibility(dlg, options);
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.addEventListener('close', resolve); dlg.addEventListener('close', resolve);

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-input', 'paper-button', 'emby-collapsible', 'paper-checkbox'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-input', 'paper-button', 'emby-collapsible', 'paper-checkbox'], function (dialogHelper, $) {
function renderLibrarySharingList(context, result) { function renderLibrarySharingList(context, result) {
@ -56,7 +56,7 @@
}).then(function (result) { }).then(function (result) {
dlg.submitted = true; dlg.submitted = true;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
@ -94,7 +94,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
size: 'small' size: 'small'
}); });
@ -111,7 +111,7 @@
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.addEventListener('close', function () { dlg.addEventListener('close', function () {
@ -124,7 +124,7 @@
dlg.querySelector('.btnCancel').addEventListener('click', function (e) { dlg.querySelector('.btnCancel').addEventListener('click', function (e) {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.querySelector('form').addEventListener('submit', function (e) { dlg.querySelector('form').addEventListener('submit', function (e) {

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-fab'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-fab'], function (dialogHelper, $) {
var currentItemId; var currentItemId;
var currentItemType; var currentItemType;
@ -131,7 +131,7 @@
hasChanges = true; hasChanges = true;
var dlg = $(page).parents('dialog')[0]; var dlg = $(page).parents('dialog')[0];
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
} }
@ -271,7 +271,7 @@
currentItemId = itemId; currentItemId = itemId;
currentItemType = itemType; currentItemType = itemType;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'fullscreen-border', size: 'fullscreen-border',
lockScroll: true lockScroll: true
}); });
@ -298,14 +298,14 @@
// Has to be assigned a z-index after the call to .open() // Has to be assigned a z-index after the call to .open()
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
var editorContent = dlg.querySelector('.editorContent'); var editorContent = dlg.querySelector('.editorContent');
initEditor(editorContent); initEditor(editorContent);
$('.btnCloseDialog', dlg).on('click', function () { $('.btnCloseDialog', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
reloadBrowsableImages(editorContent); reloadBrowsableImages(editorContent);

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'css!css/metadataeditor.css', 'paper-fab'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'css!css/metadataeditor.css', 'paper-fab'], function (dialogHelper, $) {
var currentItem; var currentItem;
var currentDeferred; var currentDeferred;
@ -245,7 +245,7 @@
var template = this.response; var template = this.response;
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) { ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'fullscreen-border' size: 'fullscreen-border'
}); });
@ -273,14 +273,14 @@
// Has to be assigned a z-index after the call to .open() // Has to be assigned a z-index after the call to .open()
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
var editorContent = dlg.querySelector('.editorContent'); var editorContent = dlg.querySelector('.editorContent');
reload(editorContent, item); reload(editorContent, item);
$('.btnCloseDialog', dlg).on('click', function () { $('.btnCloseDialog', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
}); });
} }

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-fab'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-fab'], function (dialogHelper, $) {
var currentItemId; var currentItemId;
var currentFile; var currentFile;
@ -137,7 +137,7 @@
var template = this.response; var template = this.response;
currentItemId = itemId; currentItemId = itemId;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'fullscreen-border' size: 'fullscreen-border'
}); });
@ -163,7 +163,7 @@
// Has to be assigned a z-index after the call to .open() // Has to be assigned a z-index after the call to .open()
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
var editorContent = dlg.querySelector('.editorContent'); var editorContent = dlg.querySelector('.editorContent');
initEditor(editorContent); initEditor(editorContent);
@ -172,7 +172,7 @@
$('.btnCloseDialog', dlg).on('click', function () { $('.btnCloseDialog', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
} }

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-fab', 'paper-input', 'paper-checkbox'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-fab', 'paper-input', 'paper-checkbox'], function (dialogHelper, $) {
var currentItem; var currentItem;
var currentItemType; var currentItemType;
@ -110,7 +110,7 @@
hasChanges = true; hasChanges = true;
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
} }
function showIdentifyOptions(page, identifyResult) { function showIdentifyOptions(page, identifyResult) {
@ -219,13 +219,13 @@
hasChanges = true; hasChanges = true;
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
paperDialogHelper.close(page); dialogHelper.close(page);
}, function () { }, function () {
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
paperDialogHelper.close(page); dialogHelper.close(page);
}); });
} }
@ -287,7 +287,7 @@
currentItem = item; currentItem = item;
currentItemType = currentItem.Type; currentItemType = currentItem.Type;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'medium' size: 'medium'
}); });
@ -303,7 +303,7 @@
// Has to be assigned a z-index after the call to .open() // Has to be assigned a z-index after the call to .open()
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.querySelector('.popupIdentifyForm').addEventListener('submit', function (e) { dlg.querySelector('.popupIdentifyForm').addEventListener('submit', function (e) {
@ -321,7 +321,7 @@
$('.btnCancel', dlg).on('click', function () { $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.classList.add('identifyDialog'); dlg.classList.add('identifyDialog');
@ -353,7 +353,7 @@
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'medium' size: 'medium'
}); });
@ -366,11 +366,11 @@
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.querySelector('.btnCancel').addEventListener('click', function (e) { dlg.querySelector('.btnCancel').addEventListener('click', function (e) {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.querySelector('.popupIdentifyForm').addEventListener('submit', function (e) { dlg.querySelector('.popupIdentifyForm').addEventListener('submit', function (e) {

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper, $) {
var currentDeferred; var currentDeferred;
var hasChanges; var hasChanges;
@ -30,7 +30,7 @@
ApiClient.addVirtualFolder(name, type, currentOptions.refresh, paths).then(function () { ApiClient.addVirtualFolder(name, type, currentOptions.refresh, paths).then(function () {
hasChanges = true; hasChanges = true;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}, function () { }, function () {
@ -196,7 +196,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'small', size: 'small',
// In (at least) chrome this is causing the text field to not be editable // In (at least) chrome this is causing the text field to not be editable
@ -216,11 +216,11 @@
dlg.addEventListener('close', onDialogClosed); dlg.addEventListener('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.querySelector('.btnCancel').addEventListener('click', function () { dlg.querySelector('.btnCancel').addEventListener('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
paths = []; paths = [];

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper, $) {
var currentDeferred; var currentDeferred;
var hasChanges; var hasChanges;
@ -150,7 +150,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'small', size: 'small',
// In (at least) chrome this is causing the text field to not be editable // In (at least) chrome this is causing the text field to not be editable
@ -180,11 +180,11 @@
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
$('.btnCloseDialog', dlg).on('click', function () { $('.btnCloseDialog', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
refreshLibraryFromServer(editorContent); refreshLibraryFromServer(editorContent);

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (dialogHelper, $) {
var currentContext; var currentContext;
var metadataEditorInfo; var metadataEditorInfo;
@ -7,7 +7,7 @@
function closeDialog(isSubmitted) { function closeDialog(isSubmitted) {
if (currentContext.tagName == 'DIALOG') { if (currentContext.tagName == 'DIALOG') {
paperDialogHelper.close(currentContext); dialogHelper.close(currentContext);
} }
} }
@ -1220,7 +1220,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
size: 'medium' size: 'medium'
}); });
@ -1237,7 +1237,7 @@
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.addEventListener('close', function () { dlg.addEventListener('close', function () {
unbindItemChanged(dlg); unbindItemChanged(dlg);

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery'], function (dialogHelper, $) {
return { return {
show: function (person) { show: function (person) {
@ -10,7 +10,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
size: 'medium' size: 'medium'
}); });
@ -32,7 +32,7 @@
$('.selectPersonType', dlg).val(person.Type || ''); $('.selectPersonType', dlg).val(person.Type || '');
$('.txtPersonRole', dlg).val(person.Role || ''); $('.txtPersonRole', dlg).val(person.Role || '');
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
dlg.addEventListener('close', function () { dlg.addEventListener('close', function () {
@ -45,7 +45,7 @@
dlg.querySelector('.btnCancel').addEventListener('click', function (e) { dlg.querySelector('.btnCancel').addEventListener('click', function (e) {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
dlg.querySelector('form').addEventListener('submit', function (e) { dlg.querySelector('form').addEventListener('submit', function (e) {
@ -56,7 +56,7 @@
person.Type = $('.selectPersonType', dlg).val(); person.Type = $('.selectPersonType', dlg).val();
person.Role = $('.txtPersonRole', dlg).val() || null; person.Role = $('.txtPersonRole', dlg).val() || null;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
e.preventDefault(); e.preventDefault();
return false; return false;

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'paper-input'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'paper-input'], function (dialogHelper, $) {
var lastPlaylistId = ''; var lastPlaylistId = '';
@ -52,7 +52,7 @@
var id = result.Id; var id = result.Id;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
redirectToPlaylist(id); redirectToPlaylist(id);
}); });
} }
@ -73,7 +73,7 @@
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
require(['toast'], function (toast) { require(['toast'], function (toast) {
toast(Globalize.translate('MessageAddedToPlaylistSuccess')); toast(Globalize.translate('MessageAddedToPlaylistSuccess'));
}); });
@ -196,7 +196,7 @@
items = items || []; items = items || [];
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'small' size: 'small'
}); });
@ -223,11 +223,11 @@
$(dlg).on('close', onDialogClosed); $(dlg).on('close', onDialogClosed);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
$('.btnCancel', dlg).on('click', function () { $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
}; };
} }

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery', 'scripts/livetvcomponents', 'livetvcss', 'paper-checkbox', 'paper-input', 'paper-toggle-button'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'scripts/livetvcomponents', 'livetvcss', 'paper-checkbox', 'paper-input', 'paper-toggle-button'], function (dialogHelper, $) {
var currentProgramId; var currentProgramId;
var currentDialog; var currentDialog;
@ -40,7 +40,7 @@
function closeDialog(isSubmitted) { function closeDialog(isSubmitted) {
recordingCreated = isSubmitted; recordingCreated = isSubmitted;
paperDialogHelper.close(currentDialog); dialogHelper.close(currentDialog);
} }
function onSubmit() { function onSubmit() {
@ -334,7 +334,7 @@
xhr.onload = function (e) { xhr.onload = function (e) {
var template = this.response; var template = this.response;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
size: 'small' size: 'small'
}); });
@ -351,7 +351,7 @@
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
currentDialog = dlg; currentDialog = dlg;

View file

@ -1,8 +1,8 @@
define(['paperdialoghelper', 'jQuery', 'thirdparty/social-share-kit-1.0.4/dist/js/social-share-kit.min', 'css!thirdparty/social-share-kit-1.0.4/dist/css/social-share-kit.css'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery', 'thirdparty/social-share-kit-1.0.4/dist/js/social-share-kit.min', 'css!thirdparty/social-share-kit-1.0.4/dist/css/social-share-kit.css'], function (dialogHelper, $) {
function showMenu(options, successCallback, cancelCallback) { function showMenu(options, successCallback, cancelCallback) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
autoFocus: false autoFocus: false
}); });
@ -61,15 +61,15 @@
// Has to be assigned a z-index after the call to .open() // Has to be assigned a z-index after the call to .open()
$('.ssk', dlg).on('click', function () { $('.ssk', dlg).on('click', function () {
isShared = true; isShared = true;
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
// Has to be assigned a z-index after the call to .open() // Has to be assigned a z-index after the call to .open()
dlg.querySelector('.btnCancel').addEventListener('click', function () { dlg.querySelector('.btnCancel').addEventListener('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
} }
return { return {

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'appStorage', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, appStorage, $) { define(['dialogHelper', 'appStorage', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper, appStorage, $) {
var currentItem; var currentItem;
@ -353,7 +353,7 @@
var template = this.response; var template = this.response;
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) { ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'small', size: 'small',
removeOnClose: true removeOnClose: true
}); });
@ -380,7 +380,7 @@
$('.subtitleSearchForm', dlg).off('submit', onSearchSubmit).on('submit', onSearchSubmit); $('.subtitleSearchForm', dlg).off('submit', onSearchSubmit).on('submit', onSearchSubmit);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
var editorContent = dlg.querySelector('.editorContent'); var editorContent = dlg.querySelector('.editorContent');
reload(editorContent, item); reload(editorContent, item);
@ -392,7 +392,7 @@
$('.btnCancel', dlg).on('click', function () { $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
}); });
} }

View file

@ -16,7 +16,7 @@
margin-left: .5em; margin-left: .5em;
} }
.background-theme-b, .paperDialog.background-theme-b { .background-theme-b, .dialog.background-theme-b {
background-color: #181818; background-color: #181818;
/*background: radial-gradient(circle, #282828, #141414);*/ /*background: radial-gradient(circle, #282828, #141414);*/
} }

View file

@ -839,11 +839,11 @@ paper-input + .fieldDescription {
box-shadow: -3px 0 10px 0 #555;*/ box-shadow: -3px 0 10px 0 #555;*/
} }
.background-theme-a, .paperDialog.background-theme-a { .background-theme-a, .dialog.background-theme-a {
background-color: #f6f6f6; background-color: #f6f6f6;
} }
.paperDialog:not(.background-theme-a):not(.background-theme-b) { .dialog:not(.background-theme-a):not(.background-theme-b) {
background-color: #fff; background-color: #fff;
} }

View file

@ -19,7 +19,7 @@
background-attachment: initial; background-attachment: initial;
} }
.background-theme-b, .paperDialog.background-theme-b { .background-theme-b, .dialog.background-theme-b {
background: #181818; background: #181818;
} }

View file

@ -13,7 +13,7 @@
font-weight: 400 !important; font-weight: 400 !important;
} }
.background-theme-b, .paperDialog.background-theme-b { .background-theme-b, .dialog.background-theme-b {
background: #161616; background: #161616;
} }

View file

@ -2941,9 +2941,9 @@
showSortMenu: function (options) { showSortMenu: function (options) {
require(['paperdialoghelper', 'paper-radio-button', 'paper-radio-group'], function (paperDialogHelper) { require(['dialogHelper', 'paper-radio-button', 'paper-radio-group'], function (dialogHelper) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
removeOnClose: true, removeOnClose: true,
modal: false, modal: false,
entryAnimationDuration: 160, entryAnimationDuration: 160,
@ -2989,7 +2989,7 @@
// Seeing an issue in Firefox and IE where it's initially visible in the bottom right, then moves to the center // Seeing an issue in Firefox and IE where it's initially visible in the bottom right, then moves to the center
var delay = browserInfo.animate ? 0 : 100; var delay = browserInfo.animate ? 0 : 100;
setTimeout(function () { setTimeout(function () {
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
}, delay); }, delay);
dlg.querySelector('.groupSortBy').addEventListener('iron-select', function () { dlg.querySelector('.groupSortBy').addEventListener('iron-select', function () {

View file

@ -97,9 +97,9 @@
function showPlaybackOverlay(resolve, reject) { function showPlaybackOverlay(resolve, reject) {
require(['paperdialoghelper', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper) { require(['dialogHelper', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (dialogHelper) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'fullscreen-border' size: 'fullscreen-border'
}); });
@ -144,10 +144,10 @@
resolve(); resolve();
}); });
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
$('.btnCancelSupporterInfo').on('click', function () { $('.btnCancelSupporterInfo').on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
}); });
} }

View file

@ -1881,7 +1881,7 @@ var AppInfo = {};
define("swiper", [bowerPath + "/Swiper/dist/js/swiper.min", "css!" + bowerPath + "/Swiper/dist/css/swiper.min"], returnFirstDependency); define("swiper", [bowerPath + "/Swiper/dist/js/swiper.min", "css!" + bowerPath + "/Swiper/dist/css/swiper.min"], returnFirstDependency);
define("paperdialoghelper", [embyWebComponentsBowerPath + "/paperdialoghelper/paperdialoghelper"], returnFirstDependency); define("dialogHelper", [embyWebComponentsBowerPath + "/dialoghelper/dialoghelper"], returnFirstDependency);
define("toast", [embyWebComponentsBowerPath + "/toast/toast"], returnFirstDependency); define("toast", [embyWebComponentsBowerPath + "/toast/toast"], returnFirstDependency);
define("scrollHelper", [embyWebComponentsBowerPath + "/scrollhelper"], returnFirstDependency); define("scrollHelper", [embyWebComponentsBowerPath + "/scrollhelper"], returnFirstDependency);

View file

@ -2,7 +2,7 @@
var currentDialogOptions; var currentDialogOptions;
function submitJob(dlg, userId, syncOptions, form, paperDialogHelper) { function submitJob(dlg, userId, syncOptions, form, dialogHelper) {
if (!userId) { if (!userId) {
throw new Error('userId cannot be null'); throw new Error('userId cannot be null');
@ -53,7 +53,7 @@
}).then(function () { }).then(function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
require(['toast'], function (toast) { require(['toast'], function (toast) {
toast(Globalize.translate('MessageSyncJobCreated')); toast(Globalize.translate('MessageSyncJobCreated'));
}); });
@ -218,7 +218,7 @@
function showSyncMenuInternal(options) { function showSyncMenuInternal(options) {
require(['paperdialoghelper', 'paper-fab'], function (paperDialogHelper) { require(['dialogHelper', 'paper-fab'], function (dialogHelper) {
var userId = Dashboard.getCurrentUserId(); var userId = Dashboard.getCurrentUserId();
@ -236,7 +236,7 @@
currentDialogOptions = dialogOptions; currentDialogOptions = dialogOptions;
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'small', size: 'small',
removeOnClose: true, removeOnClose: true,
autoFocus: false autoFocus: false
@ -270,16 +270,16 @@
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
$('form', dlg).on('submit', function () { $('form', dlg).on('submit', function () {
submitJob(dlg, userId, options, this, paperDialogHelper); submitJob(dlg, userId, options, this, dialogHelper);
return false; return false;
}); });
$('.btnCancel', dlg).on('click', function () { $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
renderForm({ renderForm({

View file

@ -551,7 +551,7 @@ div.dialogHeader {
margin-left: .75em; margin-left: .75em;
} }
.paperDialog.popupEditor h2.dialogHeader { .dialog.popupEditor h2.dialogHeader {
font-weight: inherit !important; font-weight: inherit !important;
line-height: 36px; line-height: 36px;
padding: 0 1em; padding: 0 1em;
@ -563,7 +563,7 @@ div.dialogHeader {
margin-bottom: 0; margin-bottom: 0;
} }
.paperDialog.popupEditor { .dialog.popupEditor {
padding-bottom: 100px; padding-bottom: 100px;
} }

View file

@ -1,4 +1,4 @@
define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) { define(['dialogHelper', 'jQuery'], function (dialogHelper, $) {
var currentRecognition; var currentRecognition;
var lang = 'en-US'; var lang = 'en-US';
@ -121,7 +121,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
/// <returns> . </returns> /// <returns> . </returns>
function showVoiceHelp(groupid, title) { function showVoiceHelp(groupid, title) {
var dlg = paperDialogHelper.createDialog({ var dlg = dialogHelper.createDialog({
size: 'medium', size: 'medium',
removeOnClose: true removeOnClose: true
}); });
@ -176,7 +176,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
dlg.innerHTML = html; dlg.innerHTML = html;
document.body.appendChild(dlg); document.body.appendChild(dlg);
paperDialogHelper.open(dlg); dialogHelper.open(dlg);
currentDialog = dlg; currentDialog = dlg;
dlg.addEventListener('close', function () { dlg.addEventListener('close', function () {
@ -185,7 +185,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
$('.btnCancelVoiceInput', dlg).on('click', function () { $('.btnCancelVoiceInput', dlg).on('click', function () {
destroyCurrentRecognition(); destroyCurrentRecognition();
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
}); });
$('.btnRetry', dlg).on('click', function () { $('.btnRetry', dlg).on('click', function () {
@ -250,7 +250,7 @@ define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) {
var dlg = currentDialog; var dlg = currentDialog;
if (dlg) { if (dlg) {
paperDialogHelper.close(dlg); dialogHelper.close(dlg);
} }
}); });