From 38b75cc20a0aa74234a5802cf140a57cc0a99bb0 Mon Sep 17 00:00:00 2001 From: softworkz Date: Fri, 18 Mar 2016 22:12:44 +0100 Subject: [PATCH] Added jQuery as local dependency for components --- dashboard-ui/components/collectioneditor/collectioneditor.js | 2 +- dashboard-ui/components/directorybrowser/directorybrowser.js | 2 +- dashboard-ui/components/filterdialog/filterdialog.js | 2 +- dashboard-ui/components/guestinviter/guestinviter.js | 2 +- dashboard-ui/components/imagedownloader/imagedownloader.js | 2 +- dashboard-ui/components/imageeditor/imageeditor.js | 2 +- dashboard-ui/components/imageuploader/imageuploader.js | 2 +- dashboard-ui/components/itemidentifier/itemidentifier.js | 2 +- .../components/medialibrarycreator/medialibrarycreator.js | 2 +- .../components/medialibraryeditor/medialibraryeditor.js | 2 +- dashboard-ui/components/metadataeditor/metadataeditor.js | 2 +- dashboard-ui/components/metadataeditor/personeditor.js | 2 +- dashboard-ui/components/playlisteditor/playlisteditor.js | 2 +- dashboard-ui/components/recordingcreator/recordingcreator.js | 2 +- dashboard-ui/components/remotecontrol.js | 2 +- dashboard-ui/components/sharingwidget.js | 2 +- dashboard-ui/components/subtitleeditor/subtitleeditor.js | 2 +- dashboard-ui/components/tvguide/tvguide.js | 2 +- dashboard-ui/components/tvproviders/schedulesdirect.js | 2 +- dashboard-ui/components/viewcontainer-lite.js | 2 +- dashboard-ui/voice/voicedialog.js | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/dashboard-ui/components/collectioneditor/collectioneditor.js b/dashboard-ui/components/collectioneditor/collectioneditor.js index 0f8f4be6c..5330eecfa 100644 --- a/dashboard-ui/components/collectioneditor/collectioneditor.js +++ b/dashboard-ui/components/collectioneditor/collectioneditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-input'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-dialog', 'paper-input'], function (paperDialogHelper, $) { function onSubmit() { Dashboard.showLoadingMsg(); diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index 21cf94b7a..6c1af965e 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-item', 'paper-input', 'paper-fab', 'paper-item-body'], function (paperDialogHelper, $) { var systemInfo; function getSystemInfo() { diff --git a/dashboard-ui/components/filterdialog/filterdialog.js b/dashboard-ui/components/filterdialog/filterdialog.js index 0baf5dbc1..fd1cd4bf0 100644 --- a/dashboard-ui/components/filterdialog/filterdialog.js +++ b/dashboard-ui/components/filterdialog/filterdialog.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'events', 'browser', 'paper-checkbox', 'emby-collapsible', 'css!components/filterdialog/style', 'paper-radio-button', 'paper-radio-group'], function (paperDialogHelper, events, browser) { +define(['paperdialoghelper', 'events', 'browser', 'jQuery', 'paper-checkbox', 'emby-collapsible', 'css!components/filterdialog/style', 'paper-radio-button', 'paper-radio-group'], function (paperDialogHelper, events, browser, $) { function renderOptions(context, selector, cssClass, items, isCheckedFn) { diff --git a/dashboard-ui/components/guestinviter/guestinviter.js b/dashboard-ui/components/guestinviter/guestinviter.js index d17ad7a88..a036b61ca 100644 --- a/dashboard-ui/components/guestinviter/guestinviter.js +++ b/dashboard-ui/components/guestinviter/guestinviter.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-input', 'paper-button', 'emby-collapsible', 'paper-checkbox'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-input', 'paper-button', 'emby-collapsible', 'paper-checkbox'], function (paperDialogHelper, $) { function renderLibrarySharingList(context, result) { diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index 0d180b5e9..bceeb76da 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-fab'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-dialog', 'paper-fab'], function (paperDialogHelper, $) { var currentItemId; var currentItemType; diff --git a/dashboard-ui/components/imageeditor/imageeditor.js b/dashboard-ui/components/imageeditor/imageeditor.js index d708e0ba8..1419ab636 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.js +++ b/dashboard-ui/components/imageeditor/imageeditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'css!css/metadataeditor.css', 'paper-fab'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'css!css/metadataeditor.css', 'paper-fab'], function (paperDialogHelper, $) { var currentItem; var currentDeferred; diff --git a/dashboard-ui/components/imageuploader/imageuploader.js b/dashboard-ui/components/imageuploader/imageuploader.js index 8c1f5b0a5..6fff2f1e0 100644 --- a/dashboard-ui/components/imageuploader/imageuploader.js +++ b/dashboard-ui/components/imageuploader/imageuploader.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-dialog', 'paper-fab'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-dialog', 'paper-fab'], function (paperDialogHelper, $) { var currentItemId; var currentFile; diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.js b/dashboard-ui/components/itemidentifier/itemidentifier.js index 8974b6275..4ed602c66 100644 --- a/dashboard-ui/components/itemidentifier/itemidentifier.js +++ b/dashboard-ui/components/itemidentifier/itemidentifier.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-dialog', 'paper-fab', 'paper-input', 'paper-checkbox'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-dialog', 'paper-fab', 'paper-input', 'paper-checkbox'], function (paperDialogHelper, $) { var currentItem; var currentItemType; diff --git a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js index 1fb0a4791..f1f1a22d0 100644 --- a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js +++ b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-dialog', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-dialog', 'paper-input', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, $) { var currentDeferred; var hasChanges; diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js index 237061340..4a2b5665b 100644 --- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js +++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, $) { var currentDeferred; var hasChanges; diff --git a/dashboard-ui/components/metadataeditor/metadataeditor.js b/dashboard-ui/components/metadataeditor/metadataeditor.js index 7db2d4b2e..6fa6228ab 100644 --- a/dashboard-ui/components/metadataeditor/metadataeditor.js +++ b/dashboard-ui/components/metadataeditor/metadataeditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-checkbox', 'paper-dialog', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-checkbox', 'paper-dialog', 'paper-input', 'paper-item-body', 'paper-icon-item', 'paper-textarea', 'paper-fab'], function (paperDialogHelper, $) { var currentContext; var metadataEditorInfo; diff --git a/dashboard-ui/components/metadataeditor/personeditor.js b/dashboard-ui/components/metadataeditor/personeditor.js index 6e20fa420..d139f2bba 100644 --- a/dashboard-ui/components/metadataeditor/personeditor.js +++ b/dashboard-ui/components/metadataeditor/personeditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) { return { show: function (person) { diff --git a/dashboard-ui/components/playlisteditor/playlisteditor.js b/dashboard-ui/components/playlisteditor/playlisteditor.js index 9f3995ca4..1e2636d68 100644 --- a/dashboard-ui/components/playlisteditor/playlisteditor.js +++ b/dashboard-ui/components/playlisteditor/playlisteditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'paper-dialog', 'paper-input'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'paper-dialog', 'paper-input'], function (paperDialogHelper, $) { var lastPlaylistId = ''; diff --git a/dashboard-ui/components/recordingcreator/recordingcreator.js b/dashboard-ui/components/recordingcreator/recordingcreator.js index f0a2051ba..093690395 100644 --- a/dashboard-ui/components/recordingcreator/recordingcreator.js +++ b/dashboard-ui/components/recordingcreator/recordingcreator.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'scripts/livetvcomponents', 'livetvcss', 'paper-checkbox', 'paper-input', 'paper-toggle-button'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery', 'scripts/livetvcomponents', 'livetvcss', 'paper-checkbox', 'paper-input', 'paper-toggle-button'], function (paperDialogHelper, $) { var currentProgramId; var currentDialog; diff --git a/dashboard-ui/components/remotecontrol.js b/dashboard-ui/components/remotecontrol.js index 7fbabd33d..f88eb6b14 100644 --- a/dashboard-ui/components/remotecontrol.js +++ b/dashboard-ui/components/remotecontrol.js @@ -1,4 +1,4 @@ -define(['browser', 'paper-fab', 'paper-tabs', 'paper-slider', 'paper-icon-button'], function (browser) { +define(['browser', 'jQuery', 'paper-fab', 'paper-tabs', 'paper-slider', 'paper-icon-button'], function (browser, $) { function showSlideshowMenu(context) { require(['scripts/slideshow'], function () { diff --git a/dashboard-ui/components/sharingwidget.js b/dashboard-ui/components/sharingwidget.js index 4601cf10b..b817bf079 100644 --- a/dashboard-ui/components/sharingwidget.js +++ b/dashboard-ui/components/sharingwidget.js @@ -1,4 +1,4 @@ -define(['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', 'fade-in-animation', 'fade-out-animation', 'paper-dialog'], function () { +define(['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', 'fade-in-animation', 'fade-out-animation', 'paper-dialog'], function ($) { function showMenu(options, successCallback, cancelCallback) { diff --git a/dashboard-ui/components/subtitleeditor/subtitleeditor.js b/dashboard-ui/components/subtitleeditor/subtitleeditor.js index 29044947b..bb069fdea 100644 --- a/dashboard-ui/components/subtitleeditor/subtitleeditor.js +++ b/dashboard-ui/components/subtitleeditor/subtitleeditor.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper', 'appStorage', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, appStorage) { +define(['paperdialoghelper', 'appStorage', 'jQuery', 'paper-fab', 'paper-item-body', 'paper-icon-item'], function (paperDialogHelper, appStorage, $) { var currentItem; diff --git a/dashboard-ui/components/tvguide/tvguide.js b/dashboard-ui/components/tvguide/tvguide.js index 0bfd2fe33..2bdcaeecb 100644 --- a/dashboard-ui/components/tvguide/tvguide.js +++ b/dashboard-ui/components/tvguide/tvguide.js @@ -1,4 +1,4 @@ -define(['livetvcss', 'scripts/livetvcomponents'], function () { +define(['jQuery', 'livetvcss', 'scripts/livetvcomponents'], function ($) { return function (options) { diff --git a/dashboard-ui/components/tvproviders/schedulesdirect.js b/dashboard-ui/components/tvproviders/schedulesdirect.js index f27e44098..fdfdae2b7 100644 --- a/dashboard-ui/components/tvproviders/schedulesdirect.js +++ b/dashboard-ui/components/tvproviders/schedulesdirect.js @@ -1,4 +1,4 @@ -define(['paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item'], function () { +define(['jQuery','paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item'], function ($) { return function (page, providerId, options) { diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index 431bf3ec7..5dda2cf2d 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -1,4 +1,4 @@ -define([], function () { +define(['jQuery'], function ($) { var pageContainerCount; var animationDuration = 500; diff --git a/dashboard-ui/voice/voicedialog.js b/dashboard-ui/voice/voicedialog.js index e2751d6e2..f5e8020f3 100644 --- a/dashboard-ui/voice/voicedialog.js +++ b/dashboard-ui/voice/voicedialog.js @@ -1,4 +1,4 @@ -define(['paperdialoghelper'], function (paperDialogHelper) { +define(['paperdialoghelper', 'jQuery'], function (paperDialogHelper, $) { var currentRecognition; var lang = 'en-US';