diff --git a/dashboard-ui/components/accessschedule/accessschedule.js b/dashboard-ui/components/accessschedule/accessschedule.js index d6545acea..021886984 100644 --- a/dashboard-ui/components/accessschedule/accessschedule.js +++ b/dashboard-ui/components/accessschedule/accessschedule.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'datetime', 'emby-select', 'paper-icon-button-light', 'formDialogStyle'], function (dialogHelper, datetime) { + 'use strict'; function getDisplayTime(hours) { diff --git a/dashboard-ui/components/appfooter/appfooter.js b/dashboard-ui/components/appfooter/appfooter.js index fd3fa49e8..910db6f2e 100644 --- a/dashboard-ui/components/appfooter/appfooter.js +++ b/dashboard-ui/components/appfooter/appfooter.js @@ -1,4 +1,5 @@ define(['browser', 'css!./appfooter'], function (browser) { + 'use strict'; function render(options) { diff --git a/dashboard-ui/components/apphost.js b/dashboard-ui/components/apphost.js index 640926919..fd8f1aa06 100644 --- a/dashboard-ui/components/apphost.js +++ b/dashboard-ui/components/apphost.js @@ -1,4 +1,5 @@ define(['appStorage', 'browser'], function (appStorage, browser) { + 'use strict'; function getDeviceProfile() { diff --git a/dashboard-ui/components/categorysyncbuttons.js b/dashboard-ui/components/categorysyncbuttons.js index 9e33c6bd1..81ddc421a 100644 --- a/dashboard-ui/components/categorysyncbuttons.js +++ b/dashboard-ui/components/categorysyncbuttons.js @@ -1,4 +1,5 @@ define(['itemHelper'], function (itemHelper) { + 'use strict'; function initSyncButtons(view) { diff --git a/dashboard-ui/components/channelmapper/channelmapper.js b/dashboard-ui/components/channelmapper/channelmapper.js index da3c83b8a..c5c4087f0 100644 --- a/dashboard-ui/components/channelmapper/channelmapper.js +++ b/dashboard-ui/components/channelmapper/channelmapper.js @@ -1,5 +1,6 @@ define(['dialogHelper', 'loading', 'connectionManager', 'globalize', 'actionsheet', 'emby-input', 'paper-icon-button-light', 'emby-button', 'listViewStyle', 'material-icons', 'formDialogStyle'], function (dialogHelper, loading, connectionManager, globalize, actionsheet) { + 'use strict'; return function (options) { diff --git a/dashboard-ui/components/chromecasthelpers.js b/dashboard-ui/components/chromecasthelpers.js index fd3a53074..990e5d673 100644 --- a/dashboard-ui/components/chromecasthelpers.js +++ b/dashboard-ui/components/chromecasthelpers.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; // LinkParser // diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index 0bbe9502d..c8d9d94fa 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'emby-button', 'paper-icon-button-light', 'css!./directorybrowser', 'formDialogStyle'], function (dialogHelper, dom) { + 'use strict'; var systemInfo; function getSystemInfo() { diff --git a/dashboard-ui/components/dockedtabs/dockedtabs.js b/dashboard-ui/components/dockedtabs/dockedtabs.js index 961644ecd..6f17c6ad0 100644 --- a/dashboard-ui/components/dockedtabs/dockedtabs.js +++ b/dashboard-ui/components/dockedtabs/dockedtabs.js @@ -1,4 +1,5 @@ define(['apphost', 'connectionManager', 'events', 'globalize', 'browser', 'require', 'dom', 'embyRouter', 'emby-tabs'], function (appHost, connectionManager, events, globalize, browser, require, dom, embyRouter) { + 'use strict'; // Make sure this is pulled in after button and tab css require(['css!./dockedtabs']); diff --git a/dashboard-ui/components/favoriteitems.js b/dashboard-ui/components/favoriteitems.js index c16f6d029..44a4b0bdc 100644 --- a/dashboard-ui/components/favoriteitems.js +++ b/dashboard-ui/components/favoriteitems.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder', 'dom', 'apphost', 'scrollStyles', 'emby-itemscontainer'], function (libraryBrowser, cardBuilder, dom, appHost) { + 'use strict'; function enableScrollX() { return browserInfo.mobile && AppInfo.enableAppLayouts; diff --git a/dashboard-ui/components/fileorganizer/fileorganizer.js b/dashboard-ui/components/fileorganizer/fileorganizer.js index f3ca0eb77..8513cab19 100644 --- a/dashboard-ui/components/fileorganizer/fileorganizer.js +++ b/dashboard-ui/components/fileorganizer/fileorganizer.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'emby-checkbox', 'emby-input', 'emby-button', 'emby-select', 'paper-icon-button-light', 'formDialogStyle'], function (dialogHelper) { + 'use strict'; var extractedName; var extractedYear; diff --git a/dashboard-ui/components/filterdialog/filterdialog.js b/dashboard-ui/components/filterdialog/filterdialog.js index 47ec96cdf..28ec10dc2 100644 --- a/dashboard-ui/components/filterdialog/filterdialog.js +++ b/dashboard-ui/components/filterdialog/filterdialog.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'events', 'browser', 'emby-checkbox', 'emby-collapse', 'css!components/filterdialog/style'], function (dialogHelper, events, browser) { + 'use strict'; function renderOptions(context, selector, cssClass, items, isCheckedFn) { diff --git a/dashboard-ui/components/groupedcards.js b/dashboard-ui/components/groupedcards.js index ad8babd4c..32ee494a4 100644 --- a/dashboard-ui/components/groupedcards.js +++ b/dashboard-ui/components/groupedcards.js @@ -1,4 +1,5 @@ define(['dom'], function (dom) { + 'use strict'; function onGroupedCardClick(e, card) { diff --git a/dashboard-ui/components/guestinviter/connectlink.js b/dashboard-ui/components/guestinviter/connectlink.js index 2208392fd..f4171d253 100644 --- a/dashboard-ui/components/guestinviter/connectlink.js +++ b/dashboard-ui/components/guestinviter/connectlink.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'jQuery', 'emby-input', 'emby-button', 'emby-collapse', 'paper-icon-button-light', 'formDialogStyle'], function (dialogHelper, $) { + 'use strict'; function updateUserInfo(user, newConnectUsername, actionCallback, noActionCallback) { var currentConnectUsername = user.ConnectUserName || ''; diff --git a/dashboard-ui/components/guestinviter/guestinviter.js b/dashboard-ui/components/guestinviter/guestinviter.js index 5456b68a7..110fc9d85 100644 --- a/dashboard-ui/components/guestinviter/guestinviter.js +++ b/dashboard-ui/components/guestinviter/guestinviter.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'jQuery', 'emby-input', 'emby-button', 'emby-checkbox', 'paper-icon-button-light', 'formDialogStyle'], function (dialogHelper, $) { + 'use strict'; function renderLibrarySharingList(context, result) { diff --git a/dashboard-ui/components/humanedate.js b/dashboard-ui/components/humanedate.js index 52699c319..71b631a05 100644 --- a/dashboard-ui/components/humanedate.js +++ b/dashboard-ui/components/humanedate.js @@ -1,4 +1,5 @@ define(['datetime'], function (datetime) { + 'use strict'; /* * Javascript Humane Dates diff --git a/dashboard-ui/components/iap.js b/dashboard-ui/components/iap.js index 9d414deed..91271435f 100644 --- a/dashboard-ui/components/iap.js +++ b/dashboard-ui/components/iap.js @@ -1,4 +1,5 @@ define(['apphost', 'globalize', 'shell'], function (appHost, globalize, shell) { + 'use strict'; function getProductInfo(feature) { return null; diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index 868afe05a..1da87548b 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'emby-checkbox', 'emby-button', 'paper-icon-button-light', 'css!css/metadataeditor.css'], function (dialogHelper) { + 'use strict'; var currentItemId; var currentItemType; diff --git a/dashboard-ui/components/imageuploader/imageuploader.js b/dashboard-ui/components/imageuploader/imageuploader.js index 056db76ca..c28594d74 100644 --- a/dashboard-ui/components/imageuploader/imageuploader.js +++ b/dashboard-ui/components/imageuploader/imageuploader.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'jQuery', 'emby-button', 'emby-select'], function (dialogHelper, $) { + 'use strict'; var currentItemId; var currentFile; diff --git a/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js b/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js index f30f3f1b0..dabc85a71 100644 --- a/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js +++ b/dashboard-ui/components/libraryoptionseditor/libraryoptionseditor.js @@ -1,4 +1,5 @@ define(['globalize', 'emby-checkbox'], function (globalize) { + 'use strict'; function embed(parent, contentType, libraryOptions) { diff --git a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js index 71f8d1735..58998154c 100644 --- a/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js +++ b/dashboard-ui/components/medialibrarycreator/medialibrarycreator.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'jQuery', 'components/libraryoptionseditor/libraryoptionseditor', 'emby-input', 'emby-select', 'paper-icon-button-light', 'listViewStyle', 'formDialogStyle'], function (dialogHelper, $, libraryoptionseditor) { + 'use strict'; var currentDeferred; var hasChanges; diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js index a31340005..d2b91cc38 100644 --- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js +++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js @@ -1,4 +1,5 @@ define(['dialogHelper', 'dom', 'components/libraryoptionseditor/libraryoptionseditor', 'emby-button', 'listViewStyle', 'paper-icon-button-light', 'formDialogStyle'], function (dialogHelper, dom, libraryoptionseditor) { + 'use strict'; var currentDeferred; var hasChanges; diff --git a/dashboard-ui/components/navdrawer/navdrawer.js b/dashboard-ui/components/navdrawer/navdrawer.js index 273ace272..21790dc59 100644 --- a/dashboard-ui/components/navdrawer/navdrawer.js +++ b/dashboard-ui/components/navdrawer/navdrawer.js @@ -1,4 +1,5 @@ define(['browser', 'css!./navdrawer', 'scrollStyles'], function (browser) { + 'use strict'; return function (options) { diff --git a/dashboard-ui/components/remotecontrol.js b/dashboard-ui/components/remotecontrol.js index e52cbd51d..e9986fd68 100644 --- a/dashboard-ui/components/remotecontrol.js +++ b/dashboard-ui/components/remotecontrol.js @@ -1,4 +1,5 @@ define(['browser', 'datetime', 'libraryBrowser', 'listView', 'userdataButtons', 'cardStyle'], function (browser, datetime, libraryBrowser, listView, userdataButtons) { + 'use strict'; function showSlideshowMenu(context) { require(['scripts/slideshow'], function () { diff --git a/dashboard-ui/components/remotecontrolautoplay.js b/dashboard-ui/components/remotecontrolautoplay.js index adae74079..900dc4659 100644 --- a/dashboard-ui/components/remotecontrolautoplay.js +++ b/dashboard-ui/components/remotecontrolautoplay.js @@ -1,4 +1,5 @@ define(['events'], function (events) { + 'use strict'; function transferPlayback(oldPlayer) { diff --git a/dashboard-ui/components/syncjoblist/syncjoblist.js b/dashboard-ui/components/syncjoblist/syncjoblist.js index 066fb658d..f5de8da7f 100644 --- a/dashboard-ui/components/syncjoblist/syncjoblist.js +++ b/dashboard-ui/components/syncjoblist/syncjoblist.js @@ -1,4 +1,5 @@ define(['serverNotifications', 'events', 'loading', 'connectionManager', 'imageLoader', 'dom', 'globalize', 'listViewStyle'], function (serverNotifications, events, loading, connectionManager, imageLoader, dom, globalize) { + 'use strict'; function onSyncJobsUpdated(e, apiClient, data) { diff --git a/dashboard-ui/components/tvproviders/schedulesdirect.js b/dashboard-ui/components/tvproviders/schedulesdirect.js index f24d32a27..065650921 100644 --- a/dashboard-ui/components/tvproviders/schedulesdirect.js +++ b/dashboard-ui/components/tvproviders/schedulesdirect.js @@ -1,4 +1,5 @@ define(['jQuery','emby-checkbox', 'listViewStyle', 'emby-input', 'emby-select'], function ($) { + 'use strict'; return function (page, providerId, options) { diff --git a/dashboard-ui/components/tvproviders/xmltv.js b/dashboard-ui/components/tvproviders/xmltv.js index 6684928ae..76454b428 100644 --- a/dashboard-ui/components/tvproviders/xmltv.js +++ b/dashboard-ui/components/tvproviders/xmltv.js @@ -1,4 +1,5 @@ define(['jQuery', 'registrationServices', 'emby-checkbox', 'emby-input', 'listViewStyle', 'paper-icon-button-light'], function ($, registrationServices) { + 'use strict'; return function (page, providerId, options) { diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index 2f902a47e..bd8b593a4 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -1,4 +1,5 @@ define(['browser'], function (browser) { + 'use strict'; var mainAnimatedPages = document.querySelector('.mainAnimatedPages'); var allPages = []; diff --git a/dashboard-ui/dashboard/aboutpage.js b/dashboard-ui/dashboard/aboutpage.js index 75a06f5e0..5f97d9149 100644 --- a/dashboard-ui/dashboard/aboutpage.js +++ b/dashboard-ui/dashboard/aboutpage.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/dashboard/autoorganizelog.js b/dashboard-ui/dashboard/autoorganizelog.js index c1a1149cc..2b231ed35 100644 --- a/dashboard-ui/dashboard/autoorganizelog.js +++ b/dashboard-ui/dashboard/autoorganizelog.js @@ -1,4 +1,5 @@ define(['serverNotifications', 'events', 'scripts/taskbutton', 'datetime', 'paper-icon-button-light'], function (serverNotifications, events, taskButton, datetime) { + 'use strict'; var query = { diff --git a/dashboard-ui/dashboard/autoorganizesmart.js b/dashboard-ui/dashboard/autoorganizesmart.js index 5a411c221..5c0d760e9 100644 --- a/dashboard-ui/dashboard/autoorganizesmart.js +++ b/dashboard-ui/dashboard/autoorganizesmart.js @@ -1,4 +1,5 @@ define(['listViewStyle'], function () { + 'use strict'; var query = { diff --git a/dashboard-ui/dashboard/autoorganizetv.js b/dashboard-ui/dashboard/autoorganizetv.js index 5de37b48b..54d24c2b5 100644 --- a/dashboard-ui/dashboard/autoorganizetv.js +++ b/dashboard-ui/dashboard/autoorganizetv.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function getEpisodeFileName(value, enableMultiEpisode) { diff --git a/dashboard-ui/dashboard/cinemamodeconfiguration.js b/dashboard-ui/dashboard/cinemamodeconfiguration.js index 696a5b0ee..af7db3f80 100644 --- a/dashboard-ui/dashboard/cinemamodeconfiguration.js +++ b/dashboard-ui/dashboard/cinemamodeconfiguration.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function loadPage(page, config) { diff --git a/dashboard-ui/dashboard/dashboardgeneral.js b/dashboard-ui/dashboard/dashboardgeneral.js index e59584d87..c3e6c2640 100644 --- a/dashboard-ui/dashboard/dashboardgeneral.js +++ b/dashboard-ui/dashboard/dashboardgeneral.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked', 'emby-checkbox', 'emby-collapse', 'emby-textarea', 'emby-input', 'emby-select'], function ($) { + 'use strict'; var brandingConfigKey = "branding"; var currentBrandingOptions; diff --git a/dashboard-ui/dashboard/dashboardhosting.js b/dashboard-ui/dashboard/dashboardhosting.js index 2dce166c7..cebbc67ea 100644 --- a/dashboard-ui/dashboard/dashboardhosting.js +++ b/dashboard-ui/dashboard/dashboardhosting.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked', 'emby-checkbox'], function ($) { + 'use strict'; function onSubmit() { var form = this; diff --git a/dashboard-ui/dashboard/devicesupload.js b/dashboard-ui/dashboard/devicesupload.js index 1d3ebb2e5..281582dd0 100644 --- a/dashboard-ui/dashboard/devicesupload.js +++ b/dashboard-ui/dashboard/devicesupload.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function load(page, config) { diff --git a/dashboard-ui/dashboard/librarydisplay.js b/dashboard-ui/dashboard/librarydisplay.js index 7d3e75864..a6cce7be1 100644 --- a/dashboard-ui/dashboard/librarydisplay.js +++ b/dashboard-ui/dashboard/librarydisplay.js @@ -1,4 +1,5 @@ define(['globalize', 'emby-checkbox', 'emby-button'], function (globalize) { + 'use strict'; function getTabs() { return [ diff --git a/dashboard-ui/dashboard/librarysettings.js b/dashboard-ui/dashboard/librarysettings.js index d1d449f7b..fa4f681d0 100644 --- a/dashboard-ui/dashboard/librarysettings.js +++ b/dashboard-ui/dashboard/librarysettings.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked', 'emby-checkbox'], function ($) { + 'use strict'; function loadPage(page, config) { diff --git a/dashboard-ui/dashboard/livetvtunerprovider-satip.js b/dashboard-ui/dashboard/livetvtunerprovider-satip.js index 94634d787..3897eeb02 100644 --- a/dashboard-ui/dashboard/livetvtunerprovider-satip.js +++ b/dashboard-ui/dashboard/livetvtunerprovider-satip.js @@ -1,4 +1,5 @@ define(['emby-checkbox'], function () { + 'use strict'; function reload(page, providerId) { diff --git a/dashboard-ui/dashboard/logpage.js b/dashboard-ui/dashboard/logpage.js index 1df33e941..f6c454547 100644 --- a/dashboard-ui/dashboard/logpage.js +++ b/dashboard-ui/dashboard/logpage.js @@ -1,4 +1,5 @@ define(['datetime', 'listViewStyle'], function (datetime) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/dashboard/wizardcomponents.js b/dashboard-ui/dashboard/wizardcomponents.js index 8ebc48a1a..1348490ef 100644 --- a/dashboard-ui/dashboard/wizardcomponents.js +++ b/dashboard-ui/dashboard/wizardcomponents.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function goNext() { Dashboard.navigate('wizardagreement.html'); diff --git a/dashboard-ui/dashboard/wizardfinishpage.js b/dashboard-ui/dashboard/wizardfinishpage.js index 9cc915e49..a147255c0 100644 --- a/dashboard-ui/dashboard/wizardfinishpage.js +++ b/dashboard-ui/dashboard/wizardfinishpage.js @@ -1,4 +1,5 @@ define(['loading'], function (loading) { + 'use strict'; function onFinish() { diff --git a/dashboard-ui/legacy/buttonenabled.js b/dashboard-ui/legacy/buttonenabled.js index ce0d84ed7..bd18e22b4 100644 --- a/dashboard-ui/legacy/buttonenabled.js +++ b/dashboard-ui/legacy/buttonenabled.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; $.fn.buttonEnabled = function (enabled) { diff --git a/dashboard-ui/legacy/dashboard.js b/dashboard-ui/legacy/dashboard.js index fd97fc189..399d2f15e 100644 --- a/dashboard-ui/legacy/dashboard.js +++ b/dashboard-ui/legacy/dashboard.js @@ -1,4 +1,6 @@ Dashboard.confirm = function (message, title, callback) { + 'use strict'; + require(['confirm'], function (confirm) { confirm(message, title).then(function () { diff --git a/dashboard-ui/legacy/fnchecked.js b/dashboard-ui/legacy/fnchecked.js index 1005d73c6..db7eb810e 100644 --- a/dashboard-ui/legacy/fnchecked.js +++ b/dashboard-ui/legacy/fnchecked.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; // TODO: This needs to be deprecated, but it's used heavily $.fn.checked = function (value) { diff --git a/dashboard-ui/legacy/selectmenu.js b/dashboard-ui/legacy/selectmenu.js index 959b8d617..a867fb379 100644 --- a/dashboard-ui/legacy/selectmenu.js +++ b/dashboard-ui/legacy/selectmenu.js @@ -1,4 +1,6 @@ define(['jQuery'], function ($) { + 'use strict'; + // TODO: This needs to be deprecated, but it's used heavily by plugins $.fn.selectmenu = function () { // No-op. This implementation only exists to prevent script errors diff --git a/dashboard-ui/scripts/addpluginpage.js b/dashboard-ui/scripts/addpluginpage.js index 746f39177..bdd591ee2 100644 --- a/dashboard-ui/scripts/addpluginpage.js +++ b/dashboard-ui/scripts/addpluginpage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function populateHistory(packageInfo, page) { diff --git a/dashboard-ui/scripts/appservices.js b/dashboard-ui/scripts/appservices.js index 6bdb20d41..137a17e03 100644 --- a/dashboard-ui/scripts/appservices.js +++ b/dashboard-ui/scripts/appservices.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function reloadList(page) { diff --git a/dashboard-ui/scripts/autobackdrops.js b/dashboard-ui/scripts/autobackdrops.js index 167efa0a9..2ff2363d1 100644 --- a/dashboard-ui/scripts/autobackdrops.js +++ b/dashboard-ui/scripts/autobackdrops.js @@ -1,4 +1,5 @@ define(['backdrop', 'appStorage'], function (backdrop, appStorage) { + 'use strict'; function isEnabledByDefault() { diff --git a/dashboard-ui/scripts/camerauploadsettings.js b/dashboard-ui/scripts/camerauploadsettings.js index c6ba24245..b877a5bfc 100644 --- a/dashboard-ui/scripts/camerauploadsettings.js +++ b/dashboard-ui/scripts/camerauploadsettings.js @@ -1,4 +1,5 @@ define(['appSettings', 'emby-checkbox'], function (appSettings) { + 'use strict'; function loadForm(page, user) { diff --git a/dashboard-ui/scripts/channelitems.js b/dashboard-ui/scripts/channelitems.js index ee95da7d9..40de447d3 100644 --- a/dashboard-ui/scripts/channelitems.js +++ b/dashboard-ui/scripts/channelitems.js @@ -1,4 +1,5 @@ define(['jQuery', 'cardBuilder', 'emby-itemscontainer'], function ($, cardBuilder) { + 'use strict'; var data = {}; diff --git a/dashboard-ui/scripts/channels.js b/dashboard-ui/scripts/channels.js index 954ae6129..91bb430f7 100644 --- a/dashboard-ui/scripts/channels.js +++ b/dashboard-ui/scripts/channels.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder', 'emby-itemscontainer', 'emby-tabs', 'emby-button', 'scripts/channelslatest', 'scripts/sections'], function (libraryBrowser, cardBuilder) { + 'use strict'; // The base query options var query = { diff --git a/dashboard-ui/scripts/channelslatest.js b/dashboard-ui/scripts/channelslatest.js index 645a3790a..076c12795 100644 --- a/dashboard-ui/scripts/channelslatest.js +++ b/dashboard-ui/scripts/channelslatest.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function reloadItems(page) { diff --git a/dashboard-ui/scripts/chromecast.js b/dashboard-ui/scripts/chromecast.js index cb35915b3..25a3be881 100644 --- a/dashboard-ui/scripts/chromecast.js +++ b/dashboard-ui/scripts/chromecast.js @@ -1,4 +1,5 @@ define(['appSettings'], function (appSettings) { + 'use strict'; // Based on https://github.com/googlecast/CastVideos-chrome/blob/master/CastVideos.js var currentResolve; diff --git a/dashboard-ui/scripts/connectlogin.js b/dashboard-ui/scripts/connectlogin.js index 15af12b80..3802ab0b6 100644 --- a/dashboard-ui/scripts/connectlogin.js +++ b/dashboard-ui/scripts/connectlogin.js @@ -1,4 +1,5 @@ define(['appSettings'], function (appSettings) { + 'use strict'; function login(page, username, password) { diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js index f03bf1180..19b377ea9 100644 --- a/dashboard-ui/scripts/dashboardpage.js +++ b/dashboard-ui/scripts/dashboardpage.js @@ -1,4 +1,5 @@ define(['datetime', 'jQuery', 'dom', 'humanedate', 'cardStyle', 'listViewStyle'], function (datetime, $, dom) { + 'use strict'; function renderNoHealthAlertsMessage(page) { diff --git a/dashboard-ui/scripts/device.js b/dashboard-ui/scripts/device.js index d84403903..594880128 100644 --- a/dashboard-ui/scripts/device.js +++ b/dashboard-ui/scripts/device.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function load(page, device, capabilities) { diff --git a/dashboard-ui/scripts/devices.js b/dashboard-ui/scripts/devices.js index c3ed85ea2..12f5c37e5 100644 --- a/dashboard-ui/scripts/devices.js +++ b/dashboard-ui/scripts/devices.js @@ -1,4 +1,5 @@ define(['jQuery', 'listViewStyle'], function ($) { + 'use strict'; function deleteDevice(page, id) { diff --git a/dashboard-ui/scripts/dlnaprofile.js b/dashboard-ui/scripts/dlnaprofile.js index 14c00f282..aae8b4264 100644 --- a/dashboard-ui/scripts/dlnaprofile.js +++ b/dashboard-ui/scripts/dlnaprofile.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked', 'jqmlistview', 'emby-select', 'emby-button', 'emby-input', 'emby-checkbox'], function ($) { + 'use strict'; var currentProfile; diff --git a/dashboard-ui/scripts/dlnaprofiles.js b/dashboard-ui/scripts/dlnaprofiles.js index 8e348cb5a..636033f16 100644 --- a/dashboard-ui/scripts/dlnaprofiles.js +++ b/dashboard-ui/scripts/dlnaprofiles.js @@ -1,4 +1,5 @@ define(['jQuery', 'listViewStyle'], function ($) { + 'use strict'; function loadProfiles(page) { diff --git a/dashboard-ui/scripts/dlnasettings.js b/dashboard-ui/scripts/dlnasettings.js index 91902995e..91325e5de 100644 --- a/dashboard-ui/scripts/dlnasettings.js +++ b/dashboard-ui/scripts/dlnasettings.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function loadPage(page, config, users) { diff --git a/dashboard-ui/scripts/edititemmetadata.js b/dashboard-ui/scripts/edititemmetadata.js index 8e2c8cedb..69a91aab8 100644 --- a/dashboard-ui/scripts/edititemmetadata.js +++ b/dashboard-ui/scripts/edititemmetadata.js @@ -1,4 +1,5 @@ define(['historyManager', 'jQuery'], function (historyManager, $) { + 'use strict'; var currentItemId; diff --git a/dashboard-ui/scripts/editorsidebar.js b/dashboard-ui/scripts/editorsidebar.js index 286eda3ea..85f1e640a 100644 --- a/dashboard-ui/scripts/editorsidebar.js +++ b/dashboard-ui/scripts/editorsidebar.js @@ -1,4 +1,5 @@ define(['datetime', 'jQuery', 'material-icons'], function (datetime, $) { + 'use strict'; function getNode(item, folderState, selected) { diff --git a/dashboard-ui/scripts/encodingsettings.js b/dashboard-ui/scripts/encodingsettings.js index 17770851c..a45fa8941 100644 --- a/dashboard-ui/scripts/encodingsettings.js +++ b/dashboard-ui/scripts/encodingsettings.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function loadPage(page, config, systemInfo) { diff --git a/dashboard-ui/scripts/episodes.js b/dashboard-ui/scripts/episodes.js index abff05c6a..b12e64a77 100644 --- a/dashboard-ui/scripts/episodes.js +++ b/dashboard-ui/scripts/episodes.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, listView, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/externalplayer.js b/dashboard-ui/scripts/externalplayer.js index eb5ac00d4..e40a6a56d 100644 --- a/dashboard-ui/scripts/externalplayer.js +++ b/dashboard-ui/scripts/externalplayer.js @@ -1,4 +1,5 @@ define(['appSettings', 'datetime', 'jQuery', 'actionsheet', 'emby-slider', 'emby-button'], function (appSettings, datetime, $, actionsheet) { + 'use strict'; function getDeviceProfile(serverAddress, deviceId, item, startPositionTicks, maxBitrate, mediaSourceId, audioStreamIndex, subtitleStreamIndex) { diff --git a/dashboard-ui/scripts/favorites.js b/dashboard-ui/scripts/favorites.js index 78e4216ba..4879c6988 100644 --- a/dashboard-ui/scripts/favorites.js +++ b/dashboard-ui/scripts/favorites.js @@ -1,4 +1,5 @@ define(['components/favoriteitems'], function (favoriteItems) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/forgotpassword.js b/dashboard-ui/scripts/forgotpassword.js index 1431421d5..f795b90d3 100644 --- a/dashboard-ui/scripts/forgotpassword.js +++ b/dashboard-ui/scripts/forgotpassword.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function processForgotPasswordResult(result) { diff --git a/dashboard-ui/scripts/forgotpasswordpin.js b/dashboard-ui/scripts/forgotpasswordpin.js index 836a06da9..5c167a094 100644 --- a/dashboard-ui/scripts/forgotpasswordpin.js +++ b/dashboard-ui/scripts/forgotpasswordpin.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function processForgotPasswordResult(result) { diff --git a/dashboard-ui/scripts/gamegenrepage.js b/dashboard-ui/scripts/gamegenrepage.js index 8f809d01d..bd6701874 100644 --- a/dashboard-ui/scripts/gamegenrepage.js +++ b/dashboard-ui/scripts/gamegenrepage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; // The base query options var query = { diff --git a/dashboard-ui/scripts/gamespage.js b/dashboard-ui/scripts/gamespage.js index c466fbbfe..c3f471414 100644 --- a/dashboard-ui/scripts/gamespage.js +++ b/dashboard-ui/scripts/gamespage.js @@ -1,4 +1,5 @@ define(['jQuery', 'listView'], function ($, listView) { + 'use strict'; var data = {}; diff --git a/dashboard-ui/scripts/gamesrecommendedpage.js b/dashboard-ui/scripts/gamesrecommendedpage.js index ce1fdb356..301e59cc3 100644 --- a/dashboard-ui/scripts/gamesrecommendedpage.js +++ b/dashboard-ui/scripts/gamesrecommendedpage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; $(document).on('pagebeforeshow', "#gamesRecommendedPage", function () { diff --git a/dashboard-ui/scripts/gamestudiospage.js b/dashboard-ui/scripts/gamestudiospage.js index d168bd35c..8fbcb0408 100644 --- a/dashboard-ui/scripts/gamestudiospage.js +++ b/dashboard-ui/scripts/gamestudiospage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; // The base query options var query = { diff --git a/dashboard-ui/scripts/gamesystemspage.js b/dashboard-ui/scripts/gamesystemspage.js index f1231ff5a..425016e15 100644 --- a/dashboard-ui/scripts/gamesystemspage.js +++ b/dashboard-ui/scripts/gamesystemspage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; // The base query options var query = { diff --git a/dashboard-ui/scripts/homefavorites.js b/dashboard-ui/scripts/homefavorites.js index 85b14599d..499c1206d 100644 --- a/dashboard-ui/scripts/homefavorites.js +++ b/dashboard-ui/scripts/homefavorites.js @@ -1,4 +1,5 @@ define(['components/favoriteitems'], function (favoriteItems) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/homenextup.js b/dashboard-ui/scripts/homenextup.js index 75f07cace..a8883eaf4 100644 --- a/dashboard-ui/scripts/homenextup.js +++ b/dashboard-ui/scripts/homenextup.js @@ -1,4 +1,5 @@ define(['components/categorysyncbuttons', 'cardBuilder', 'apphost', 'emby-itemscontainer'], function (categorysyncbuttons, cardBuilder, appHost) { + 'use strict'; function getNextUpPromise() { diff --git a/dashboard-ui/scripts/homeupcoming.js b/dashboard-ui/scripts/homeupcoming.js index 3f0786a7f..84eb97f22 100644 --- a/dashboard-ui/scripts/homeupcoming.js +++ b/dashboard-ui/scripts/homeupcoming.js @@ -1,4 +1,5 @@ define(['datetime', 'cardBuilder', 'apphost', 'emby-itemscontainer', 'scrollStyles'], function (datetime, cardBuilder, appHost) { + 'use strict'; function getUpcomingPromise() { diff --git a/dashboard-ui/scripts/htmlmediarenderer.js b/dashboard-ui/scripts/htmlmediarenderer.js index 68ece16c0..2f82df73d 100644 --- a/dashboard-ui/scripts/htmlmediarenderer.js +++ b/dashboard-ui/scripts/htmlmediarenderer.js @@ -1,4 +1,5 @@ define(['browser'], function (browser) { + 'use strict'; var supportsTextTracks; var hlsPlayer; diff --git a/dashboard-ui/scripts/indexpage.js b/dashboard-ui/scripts/indexpage.js index 05ab5985d..47d863b98 100644 --- a/dashboard-ui/scripts/indexpage.js +++ b/dashboard-ui/scripts/indexpage.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'emby-tabs', 'emby-button'], function (libraryBrowser) { + 'use strict'; var defaultFirstSection = 'smalllibrarytiles'; diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js index 8da3d3aa7..b33d14436 100644 --- a/dashboard-ui/scripts/itembynamedetailpage.js +++ b/dashboard-ui/scripts/itembynamedetailpage.js @@ -1,4 +1,5 @@ define(['listView', 'cardBuilder', 'emby-itemscontainer'], function (listView, cardBuilder) { + 'use strict'; function renderItems(page, item) { diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index 842fc761b..375dcc493 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1,4 +1,5 @@ define(['layoutManager', 'cardBuilder', 'datetime', 'mediaInfo', 'backdrop', 'listView', 'itemContextMenu', 'itemHelper', 'userdataButtons', 'dom', 'indicators', 'apphost', 'scrollStyles', 'emby-itemscontainer', 'emby-checkbox'], function (layoutManager, cardBuilder, datetime, mediaInfo, backdrop, listView, itemContextMenu, itemHelper, userdataButtons, dom, indicators, appHost) { + 'use strict'; var currentItem; var currentRecordingFields; diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index db312cad4..8d398fed1 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'alphaPicker', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (libraryBrowser, alphaPicker, listView, cardBuilder) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 82d81b72a..fecd7117d 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1,4 +1,5 @@ define(['viewManager', 'appSettings', 'appStorage', 'apphost', 'datetime', 'itemHelper', 'mediaInfo', 'scroller', 'indicators', 'dom', 'browser', 'imageLoader', 'scrollStyles'], function (viewManager, appSettings, appStorage, appHost, datetime, itemHelper, mediaInfo, scroller, indicators, dom, browser) { + 'use strict'; function fadeInRight(elem) { diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 4753cb30a..d947a1861 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -1,4 +1,5 @@ define(['imageLoader', 'layoutManager', 'viewManager', 'libraryBrowser', 'apphost', 'embyRouter', 'paper-icon-button-light', 'material-icons'], function (imageLoader, layoutManager, viewManager, libraryBrowser, appHost, embyRouter) { + 'use strict'; var enableBottomTabs = AppInfo.isNativeApp; var enableLibraryNavDrawer = !enableBottomTabs; diff --git a/dashboard-ui/scripts/librarypathmapping.js b/dashboard-ui/scripts/librarypathmapping.js index d53050ee2..dd017de28 100644 --- a/dashboard-ui/scripts/librarypathmapping.js +++ b/dashboard-ui/scripts/librarypathmapping.js @@ -1,4 +1,5 @@ define(['jQuery', 'listViewStyle'], function ($) { + 'use strict'; var currentConfig; diff --git a/dashboard-ui/scripts/livetvchannel.js b/dashboard-ui/scripts/livetvchannel.js index e1f24c1e7..2dd1dc6fa 100644 --- a/dashboard-ui/scripts/livetvchannel.js +++ b/dashboard-ui/scripts/livetvchannel.js @@ -1,4 +1,5 @@ define(['datetime', 'listView'], function (datetime, listView) { + 'use strict'; function isSameDay(date1, date2) { diff --git a/dashboard-ui/scripts/livetvchannels.js b/dashboard-ui/scripts/livetvchannels.js index d925116a1..dbb7c5502 100644 --- a/dashboard-ui/scripts/livetvchannels.js +++ b/dashboard-ui/scripts/livetvchannels.js @@ -1,4 +1,5 @@ define(['cardBuilder', 'emby-itemscontainer'], function (cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/livetvcomponents.js b/dashboard-ui/scripts/livetvcomponents.js index 734bbf3ea..185dcb56d 100644 --- a/dashboard-ui/scripts/livetvcomponents.js +++ b/dashboard-ui/scripts/livetvcomponents.js @@ -1,4 +1,5 @@ define(['datetime', 'cardBuilder', 'apphost'], function (datetime, cardBuilder, appHost) { + 'use strict'; function enableScrollX() { return browserInfo.mobile && AppInfo.enableAppLayouts; diff --git a/dashboard-ui/scripts/livetvguide.js b/dashboard-ui/scripts/livetvguide.js index 37f5dc286..ceb7ce489 100644 --- a/dashboard-ui/scripts/livetvguide.js +++ b/dashboard-ui/scripts/livetvguide.js @@ -1,4 +1,5 @@ define(['tvguide'], function (tvguide) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/livetvguideprovider.js b/dashboard-ui/scripts/livetvguideprovider.js index 0662ec651..8510f983e 100644 --- a/dashboard-ui/scripts/livetvguideprovider.js +++ b/dashboard-ui/scripts/livetvguideprovider.js @@ -1,4 +1,5 @@ define(['events'], function (events) { + 'use strict'; function onListingsSubmitted() { diff --git a/dashboard-ui/scripts/livetvitems.js b/dashboard-ui/scripts/livetvitems.js index de413844f..b5c16a3f8 100644 --- a/dashboard-ui/scripts/livetvitems.js +++ b/dashboard-ui/scripts/livetvitems.js @@ -1,4 +1,5 @@ define(['cardBuilder', 'apphost', 'emby-itemscontainer'], function (cardBuilder, appHost) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/livetvrecordings.js b/dashboard-ui/scripts/livetvrecordings.js index 956d6c9e7..3df532bed 100644 --- a/dashboard-ui/scripts/livetvrecordings.js +++ b/dashboard-ui/scripts/livetvrecordings.js @@ -1,4 +1,5 @@ define(['components/categorysyncbuttons', 'cardBuilder', 'apphost', 'scripts/livetvcomponents', 'emby-button', 'listViewStyle', 'emby-itemscontainer'], function (categorysyncbuttons, cardBuilder, appHost) { + 'use strict'; function getRecordingGroupHtml(group) { diff --git a/dashboard-ui/scripts/livetvschedule.js b/dashboard-ui/scripts/livetvschedule.js index 85442376e..c4231c4a1 100644 --- a/dashboard-ui/scripts/livetvschedule.js +++ b/dashboard-ui/scripts/livetvschedule.js @@ -1,4 +1,5 @@ define(['cardBuilder', 'apphost', 'scripts/livetvcomponents', 'emby-button', 'emby-itemscontainer'], function (cardBuilder, appHost) { + 'use strict'; function enableScrollX() { return browserInfo.mobile && AppInfo.enableAppLayouts; diff --git a/dashboard-ui/scripts/livetvseriestimer.js b/dashboard-ui/scripts/livetvseriestimer.js index a19578fa4..acf57c1f9 100644 --- a/dashboard-ui/scripts/livetvseriestimer.js +++ b/dashboard-ui/scripts/livetvseriestimer.js @@ -1,4 +1,5 @@ define(['datetime', 'dom', 'seriesRecordingEditor', 'listView', 'emby-itemscontainer'], function (datetime, dom, seriesRecordingEditor, listView) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/livetvseriestimers.js b/dashboard-ui/scripts/livetvseriestimers.js index 8584c6418..4f51ba9fb 100644 --- a/dashboard-ui/scripts/livetvseriestimers.js +++ b/dashboard-ui/scripts/livetvseriestimers.js @@ -1,4 +1,5 @@ define(['datetime', 'cardBuilder', 'imageLoader', 'apphost', 'paper-icon-button-light', 'emby-button'], function (datetime, cardBuilder, imageLoader, appHost) { + 'use strict'; var query = { diff --git a/dashboard-ui/scripts/livetvsettings.js b/dashboard-ui/scripts/livetvsettings.js index 37ee54af0..a8d18799a 100644 --- a/dashboard-ui/scripts/livetvsettings.js +++ b/dashboard-ui/scripts/livetvsettings.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function loadPage(page, config) { diff --git a/dashboard-ui/scripts/livetvstatus.js b/dashboard-ui/scripts/livetvstatus.js index aead5dcb3..07e323d71 100644 --- a/dashboard-ui/scripts/livetvstatus.js +++ b/dashboard-ui/scripts/livetvstatus.js @@ -1,4 +1,5 @@ define(['jQuery', 'scripts/taskbutton', 'listViewStyle'], function ($, taskButton) { + 'use strict'; function resetTuner(page, id) { diff --git a/dashboard-ui/scripts/livetvsuggested.js b/dashboard-ui/scripts/livetvsuggested.js index b8e79aad7..495ad3ac3 100644 --- a/dashboard-ui/scripts/livetvsuggested.js +++ b/dashboard-ui/scripts/livetvsuggested.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder', 'apphost', 'scrollStyles', 'emby-itemscontainer', 'emby-tabs', 'emby-button'], function (libraryBrowser, cardBuilder, appHost) { + 'use strict'; function enableScrollX() { return browserInfo.mobile && AppInfo.enableAppLayouts; diff --git a/dashboard-ui/scripts/livetvtunerprovider-hdhomerun.js b/dashboard-ui/scripts/livetvtunerprovider-hdhomerun.js index e563c273e..c4753c126 100644 --- a/dashboard-ui/scripts/livetvtunerprovider-hdhomerun.js +++ b/dashboard-ui/scripts/livetvtunerprovider-hdhomerun.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function reload(page, providerId) { diff --git a/dashboard-ui/scripts/livetvtunerprovider-m3u.js b/dashboard-ui/scripts/livetvtunerprovider-m3u.js index 2b107e90a..d81718f47 100644 --- a/dashboard-ui/scripts/livetvtunerprovider-m3u.js +++ b/dashboard-ui/scripts/livetvtunerprovider-m3u.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function reload(page, providerId) { diff --git a/dashboard-ui/scripts/localsync.js b/dashboard-ui/scripts/localsync.js index 710e9ea8e..f4fbbeed3 100644 --- a/dashboard-ui/scripts/localsync.js +++ b/dashboard-ui/scripts/localsync.js @@ -1,4 +1,5 @@ define(['appSettings', 'connectionManager'], function (appSettings, connectionManager) { + 'use strict'; var syncPromise; diff --git a/dashboard-ui/scripts/loginpage.js b/dashboard-ui/scripts/loginpage.js index 59a5e827d..4f93c0093 100644 --- a/dashboard-ui/scripts/loginpage.js +++ b/dashboard-ui/scripts/loginpage.js @@ -1,4 +1,5 @@ define(['appSettings', 'dom', 'connectionManager', 'cardStyle', 'emby-checkbox'], function (appSettings, dom, connectionManager) { + 'use strict'; function authenticateUserByName(page, apiClient, username, password) { diff --git a/dashboard-ui/scripts/mediacontroller.js b/dashboard-ui/scripts/mediacontroller.js index 24a2e81b9..832f6367b 100644 --- a/dashboard-ui/scripts/mediacontroller.js +++ b/dashboard-ui/scripts/mediacontroller.js @@ -1,4 +1,5 @@ define(['appStorage', 'events', 'browser'], function (appStorage, events, browser) { + 'use strict'; var currentDisplayInfo; var datetime; diff --git a/dashboard-ui/scripts/medialibrarypage.js b/dashboard-ui/scripts/medialibrarypage.js index 2ed88e3a3..2f5caa2af 100644 --- a/dashboard-ui/scripts/medialibrarypage.js +++ b/dashboard-ui/scripts/medialibrarypage.js @@ -1,4 +1,5 @@ define(['jQuery', 'apphost', 'scripts/taskbutton', 'cardStyle'], function ($, appHost, taskButton) { + 'use strict'; function changeCollectionType(page, virtualFolder) { diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index ba3b9e2b4..09bdbd584 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -1,4 +1,5 @@ define(['appSettings', 'datetime', 'mediaInfo', 'browser', 'scrollStyles', 'paper-icon-button-light'], function (appSettings, datetime, mediaInfo, browser) { + 'use strict'; function createVideoPlayer(self) { diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index 5d95441d4..05c499b5e 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -1,4 +1,5 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appSettings, userSettings, appStorage, datetime) { + 'use strict'; function mediaPlayer() { diff --git a/dashboard-ui/scripts/metadataconfigurationpage.js b/dashboard-ui/scripts/metadataconfigurationpage.js index dd25f82b5..2cb39c0af 100644 --- a/dashboard-ui/scripts/metadataconfigurationpage.js +++ b/dashboard-ui/scripts/metadataconfigurationpage.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function load(page, config, allCultures, allCountries) { if (!config || !allCultures || !allCountries) { diff --git a/dashboard-ui/scripts/metadataimagespage.js b/dashboard-ui/scripts/metadataimagespage.js index 13f36a8eb..1c1f7ced5 100644 --- a/dashboard-ui/scripts/metadataimagespage.js +++ b/dashboard-ui/scripts/metadataimagespage.js @@ -1,4 +1,5 @@ define(['jQuery', 'dom', 'listViewStyle'], function ($, dom) { + 'use strict'; var currentType; diff --git a/dashboard-ui/scripts/metadatanfo.js b/dashboard-ui/scripts/metadatanfo.js index 626bbf222..6cd72ca90 100644 --- a/dashboard-ui/scripts/metadatanfo.js +++ b/dashboard-ui/scripts/metadatanfo.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; var metadataKey = "xbmcmetadata"; diff --git a/dashboard-ui/scripts/metadatasubtitles.js b/dashboard-ui/scripts/metadatasubtitles.js index 7e78fbcb7..473f8954b 100644 --- a/dashboard-ui/scripts/metadatasubtitles.js +++ b/dashboard-ui/scripts/metadatasubtitles.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function loadPage(page, config, languages) { diff --git a/dashboard-ui/scripts/moviecollections.js b/dashboard-ui/scripts/moviecollections.js index 7ef98822f..3e95a4b5a 100644 --- a/dashboard-ui/scripts/moviecollections.js +++ b/dashboard-ui/scripts/moviecollections.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, alphaPicker, listView, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/moviegenres.js b/dashboard-ui/scripts/moviegenres.js index 586d2d5f4..df7008954 100644 --- a/dashboard-ui/scripts/moviegenres.js +++ b/dashboard-ui/scripts/moviegenres.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder'], function (libraryBrowser, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/movies.js b/dashboard-ui/scripts/movies.js index 2ad6bac06..c6d865eea 100644 --- a/dashboard-ui/scripts/movies.js +++ b/dashboard-ui/scripts/movies.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker', 'listView', 'cardBuilder', 'apphost', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, alphaPicker, listView, cardBuilder, appHost) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/moviesrecommended.js b/dashboard-ui/scripts/moviesrecommended.js index f4dd17cf0..cf3bbe427 100644 --- a/dashboard-ui/scripts/moviesrecommended.js +++ b/dashboard-ui/scripts/moviesrecommended.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'components/categorysyncbuttons', 'cardBuilder', 'dom', 'scrollStyles', 'emby-itemscontainer', 'emby-tabs', 'emby-button'], function (libraryBrowser, categorysyncbuttons, cardBuilder, dom) { + 'use strict'; function enableScrollX() { return browserInfo.mobile && AppInfo.enableAppLayouts; diff --git a/dashboard-ui/scripts/moviestudios.js b/dashboard-ui/scripts/moviestudios.js index bf5f0d5dc..6c9a46973 100644 --- a/dashboard-ui/scripts/moviestudios.js +++ b/dashboard-ui/scripts/moviestudios.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder'], function (libraryBrowser, cardBuilder) { + 'use strict'; // The base query options var data = {}; diff --git a/dashboard-ui/scripts/movietrailers.js b/dashboard-ui/scripts/movietrailers.js index 4b2da5aa0..8fd9465d0 100644 --- a/dashboard-ui/scripts/movietrailers.js +++ b/dashboard-ui/scripts/movietrailers.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, alphaPicker, listView, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/musicalbums.js b/dashboard-ui/scripts/musicalbums.js index bab36f1c9..0ef4e32bf 100644 --- a/dashboard-ui/scripts/musicalbums.js +++ b/dashboard-ui/scripts/musicalbums.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, alphaPicker, listView, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/musicartists.js b/dashboard-ui/scripts/musicartists.js index 7f0e0e76e..3cf2ad593 100644 --- a/dashboard-ui/scripts/musicartists.js +++ b/dashboard-ui/scripts/musicartists.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, alphaPicker, listView, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/musicfolders.js b/dashboard-ui/scripts/musicfolders.js index ac97e2b3d..62cd21091 100644 --- a/dashboard-ui/scripts/musicfolders.js +++ b/dashboard-ui/scripts/musicfolders.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'cardBuilder'], function (events, libraryBrowser, imageLoader, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/musicgenres.js b/dashboard-ui/scripts/musicgenres.js index 5122bda77..6ee665026 100644 --- a/dashboard-ui/scripts/musicgenres.js +++ b/dashboard-ui/scripts/musicgenres.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder'], function (libraryBrowser, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/musicrecommended.js b/dashboard-ui/scripts/musicrecommended.js index 4dccb875b..ad1134935 100644 --- a/dashboard-ui/scripts/musicrecommended.js +++ b/dashboard-ui/scripts/musicrecommended.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder', 'dom', 'apphost', 'scrollStyles', 'emby-itemscontainer', 'emby-tabs', 'emby-button'], function (libraryBrowser, cardBuilder, dom, appHost) { + 'use strict'; function itemsPerRow() { diff --git a/dashboard-ui/scripts/mypreferencescommon.js b/dashboard-ui/scripts/mypreferencescommon.js index c42722083..82afc4413 100644 --- a/dashboard-ui/scripts/mypreferencescommon.js +++ b/dashboard-ui/scripts/mypreferencescommon.js @@ -1,4 +1,5 @@ define(['apphost', 'listViewStyle'], function (appHost) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/mypreferencesdisplay.js b/dashboard-ui/scripts/mypreferencesdisplay.js index 3242b763e..cb996bb74 100644 --- a/dashboard-ui/scripts/mypreferencesdisplay.js +++ b/dashboard-ui/scripts/mypreferencesdisplay.js @@ -1,4 +1,5 @@ define(['userSettingsBuilder', 'appStorage'], function (userSettingsBuilder, appStorage) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/mypreferenceshome.js b/dashboard-ui/scripts/mypreferenceshome.js index 0e3caf9aa..5b5febeca 100644 --- a/dashboard-ui/scripts/mypreferenceshome.js +++ b/dashboard-ui/scripts/mypreferenceshome.js @@ -1,4 +1,5 @@ define(['listViewStyle'], function () { + 'use strict'; function renderViews(page, user, result) { diff --git a/dashboard-ui/scripts/mypreferenceslanguages.js b/dashboard-ui/scripts/mypreferenceslanguages.js index 9c06a5261..5059e43a2 100644 --- a/dashboard-ui/scripts/mypreferenceslanguages.js +++ b/dashboard-ui/scripts/mypreferenceslanguages.js @@ -1,4 +1,5 @@ define(['appSettings', 'userSettingsBuilder'], function (appSettings, userSettingsBuilder) { + 'use strict'; function populateLanguages(select, languages) { diff --git a/dashboard-ui/scripts/myprofile.js b/dashboard-ui/scripts/myprofile.js index 1643e57cb..d0547eb2c 100644 --- a/dashboard-ui/scripts/myprofile.js +++ b/dashboard-ui/scripts/myprofile.js @@ -1,4 +1,5 @@ define(['scripts/userpasswordpage'], function (Userpasswordpage) { + 'use strict'; var currentFile; diff --git a/dashboard-ui/scripts/mysync.js b/dashboard-ui/scripts/mysync.js index 209cfe997..8c3436dba 100644 --- a/dashboard-ui/scripts/mysync.js +++ b/dashboard-ui/scripts/mysync.js @@ -1,4 +1,5 @@ define(['apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (appHost, globalize, syncJobList, events, localSync) { + 'use strict'; function initSupporterInfo(view, params) { diff --git a/dashboard-ui/scripts/mysyncsettings.js b/dashboard-ui/scripts/mysyncsettings.js index 3ccbc44d6..161eef5cf 100644 --- a/dashboard-ui/scripts/mysyncsettings.js +++ b/dashboard-ui/scripts/mysyncsettings.js @@ -1,4 +1,5 @@ define(['appSettings', 'apphost', 'emby-checkbox', 'emby-select', 'emby-input'], function (appSettings, appHost) { + 'use strict'; function loadForm(page, user) { diff --git a/dashboard-ui/scripts/notificationlist.js b/dashboard-ui/scripts/notificationlist.js index 3d81d2ca2..cf7c88b7d 100644 --- a/dashboard-ui/scripts/notificationlist.js +++ b/dashboard-ui/scripts/notificationlist.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; $(document).on("pageshow", "#notificationsPage", function () { diff --git a/dashboard-ui/scripts/notifications.js b/dashboard-ui/scripts/notifications.js index 45f6da1fb..c316a0dd8 100644 --- a/dashboard-ui/scripts/notifications.js +++ b/dashboard-ui/scripts/notifications.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'listViewStyle'], function (libraryBrowser) { + 'use strict'; function notifications() { diff --git a/dashboard-ui/scripts/notificationsetting.js b/dashboard-ui/scripts/notificationsetting.js index e45601bc8..0c49b3545 100644 --- a/dashboard-ui/scripts/notificationsetting.js +++ b/dashboard-ui/scripts/notificationsetting.js @@ -1,4 +1,5 @@ define(['jQuery', 'emby-checkbox', 'fnchecked'], function ($) { + 'use strict'; var notificationsConfigurationKey = "notifications"; diff --git a/dashboard-ui/scripts/notificationsettings.js b/dashboard-ui/scripts/notificationsettings.js index 0369472b4..b5da52720 100644 --- a/dashboard-ui/scripts/notificationsettings.js +++ b/dashboard-ui/scripts/notificationsettings.js @@ -1,4 +1,5 @@ define(['jQuery', 'listViewStyle'], function ($) { + 'use strict'; function reload(page) { diff --git a/dashboard-ui/scripts/nowplayingbar.js b/dashboard-ui/scripts/nowplayingbar.js index 7f169dd36..c09efa018 100644 --- a/dashboard-ui/scripts/nowplayingbar.js +++ b/dashboard-ui/scripts/nowplayingbar.js @@ -1,4 +1,5 @@ define(['datetime', 'userdataButtons', 'itemHelper', 'events', 'browser', 'paper-icon-button-light'], function (datetime, userdataButtons, itemHelper, events, browser) { + 'use strict'; var currentPlayer; diff --git a/dashboard-ui/scripts/nowplayingpage.js b/dashboard-ui/scripts/nowplayingpage.js index 768efcb71..9a6ad2f8e 100644 --- a/dashboard-ui/scripts/nowplayingpage.js +++ b/dashboard-ui/scripts/nowplayingpage.js @@ -1,4 +1,5 @@ define(['components/remotecontrol', 'emby-tabs', 'emby-button'], function (remotecontrolFactory) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/photos.js b/dashboard-ui/scripts/photos.js index 0a8f149cf..e9e2a245a 100644 --- a/dashboard-ui/scripts/photos.js +++ b/dashboard-ui/scripts/photos.js @@ -1,4 +1,5 @@ define(['jQuery', 'cardBuilder', 'emby-itemscontainer'], function ($, cardBuilder) { + 'use strict'; var view = 'Poster'; diff --git a/dashboard-ui/scripts/playbackconfiguration.js b/dashboard-ui/scripts/playbackconfiguration.js index 82f462e17..3c0443b74 100644 --- a/dashboard-ui/scripts/playbackconfiguration.js +++ b/dashboard-ui/scripts/playbackconfiguration.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function loadPage(page, config) { diff --git a/dashboard-ui/scripts/playlistedit.js b/dashboard-ui/scripts/playlistedit.js index 9db265a28..956e1fec8 100644 --- a/dashboard-ui/scripts/playlistedit.js +++ b/dashboard-ui/scripts/playlistedit.js @@ -1,4 +1,5 @@ define(['jQuery', 'listView'], function ($, listView) { + 'use strict'; var data = {}; function getPageData() { diff --git a/dashboard-ui/scripts/playlists.js b/dashboard-ui/scripts/playlists.js index 4019b9d56..555e760fd 100644 --- a/dashboard-ui/scripts/playlists.js +++ b/dashboard-ui/scripts/playlists.js @@ -1,4 +1,5 @@ define(['listView', 'cardBuilder', 'libraryBrowser', 'apphost', 'emby-itemscontainer'], function (listView, cardBuilder, libraryBrowser, appHost) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/plugincatalogpage.js b/dashboard-ui/scripts/plugincatalogpage.js index 63a170153..ee9360290 100644 --- a/dashboard-ui/scripts/plugincatalogpage.js +++ b/dashboard-ui/scripts/plugincatalogpage.js @@ -1,4 +1,5 @@ define(['jQuery', 'cardStyle'], function ($) { + 'use strict'; // The base query options var query = { diff --git a/dashboard-ui/scripts/pluginspage.js b/dashboard-ui/scripts/pluginspage.js index 4930d11de..55b54601a 100644 --- a/dashboard-ui/scripts/pluginspage.js +++ b/dashboard-ui/scripts/pluginspage.js @@ -1,4 +1,5 @@ define(['jQuery', 'cardStyle'], function ($) { + 'use strict'; function deletePlugin(page, uniqueid, name) { diff --git a/dashboard-ui/scripts/remotecontrol.js b/dashboard-ui/scripts/remotecontrol.js index 28a6a4588..3ab28e217 100644 --- a/dashboard-ui/scripts/remotecontrol.js +++ b/dashboard-ui/scripts/remotecontrol.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function sendPlayCommand(options, playType) { diff --git a/dashboard-ui/scripts/reports.js b/dashboard-ui/scripts/reports.js index 8d88b70c9..58ec8088e 100644 --- a/dashboard-ui/scripts/reports.js +++ b/dashboard-ui/scripts/reports.js @@ -1,4 +1,5 @@ define(['jQuery', 'libraryBrowser', 'fnchecked'], function ($, libraryBrowser) { + 'use strict'; var defaultSortBy = "SortName"; var topItems = 5; diff --git a/dashboard-ui/scripts/scheduledtaskpage.js b/dashboard-ui/scripts/scheduledtaskpage.js index 96580ff13..89dd429bc 100644 --- a/dashboard-ui/scripts/scheduledtaskpage.js +++ b/dashboard-ui/scripts/scheduledtaskpage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; // Array Remove - By John Resig (MIT Licensed) Array.prototype.remove = function (from, to) { diff --git a/dashboard-ui/scripts/scheduledtaskspage.js b/dashboard-ui/scripts/scheduledtaskspage.js index c791c0403..fb581fe95 100644 --- a/dashboard-ui/scripts/scheduledtaskspage.js +++ b/dashboard-ui/scripts/scheduledtaskspage.js @@ -1,4 +1,5 @@ define(['jQuery', 'humanedate', 'listViewStyle'], function ($) { + 'use strict'; function reloadList(page) { diff --git a/dashboard-ui/scripts/searchpage.js b/dashboard-ui/scripts/searchpage.js index 5e39ca573..727eeb6c5 100644 --- a/dashboard-ui/scripts/searchpage.js +++ b/dashboard-ui/scripts/searchpage.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'focusManager', 'embyRouter', 'cardBuilder', 'emby-input', 'paper-icon-button-light', 'material-icons', 'emby-itemscontainer'], function (libraryBrowser, focusManager, embyRouter, cardBuilder) { + 'use strict'; function loadSuggestions(page) { diff --git a/dashboard-ui/scripts/secondaryitems.js b/dashboard-ui/scripts/secondaryitems.js index 720ae7e2e..f296e4da6 100644 --- a/dashboard-ui/scripts/secondaryitems.js +++ b/dashboard-ui/scripts/secondaryitems.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'listView', 'cardBuilder', 'emby-itemscontainer'], function (libraryBrowser, listView, cardBuilder) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/sections.js b/dashboard-ui/scripts/sections.js index 8234a7175..627e9b7e0 100644 --- a/dashboard-ui/scripts/sections.js +++ b/dashboard-ui/scripts/sections.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder', 'appSettings', 'components/groupedcards', 'dom', 'apphost', 'scrollStyles', 'emby-button', 'paper-icon-button-light', 'emby-itemscontainer'], function (libraryBrowser, cardBuilder, appSettings, groupedcards, dom, appHost) { + 'use strict'; function getUserViews(userId) { diff --git a/dashboard-ui/scripts/selectserver.js b/dashboard-ui/scripts/selectserver.js index 3861fddeb..4418247d8 100644 --- a/dashboard-ui/scripts/selectserver.js +++ b/dashboard-ui/scripts/selectserver.js @@ -1,4 +1,5 @@ define(['appSettings', 'paper-icon-button-light'], function (appSettings) { + 'use strict'; function updatePageStyle(page) { diff --git a/dashboard-ui/scripts/serversecurity.js b/dashboard-ui/scripts/serversecurity.js index 0cf184ecc..44256a7a7 100644 --- a/dashboard-ui/scripts/serversecurity.js +++ b/dashboard-ui/scripts/serversecurity.js @@ -1,4 +1,5 @@ define(['datetime', 'jQuery'], function (datetime, $) { + 'use strict'; function revoke(page, key) { diff --git a/dashboard-ui/scripts/shared.js b/dashboard-ui/scripts/shared.js index 3a4632d80..b887203b5 100644 --- a/dashboard-ui/scripts/shared.js +++ b/dashboard-ui/scripts/shared.js @@ -1,4 +1,5 @@ define(['jQuery', 'libraryBrowser'], function ($, libraryBrowser) { + 'use strict'; var currentItem; diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 5b6f298f8..a3b333605 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -1,4 +1,5 @@ function getWindowLocationSearch(win) { + 'use strict'; var search = (win || window).location.search; @@ -14,6 +15,8 @@ } function getParameterByName(name, url) { + 'use strict'; + name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS, "i"); @@ -883,6 +886,7 @@ var Dashboard = { var AppInfo = {}; (function () { + 'use strict'; function setAppInfo() { @@ -1023,7 +1027,7 @@ var AppInfo = {}; var capabilities = Dashboard.capabilities(); capabilities.DeviceProfile = deviceProfile; - connectionManager = new MediaBrowser.ConnectionManager(credentialProviderInstance, appInfo.appName, appInfo.appVersion, appInfo.deviceName, appInfo.deviceId, capabilities, window.devicePixelRatio); + var connectionManager = new MediaBrowser.ConnectionManager(credentialProviderInstance, appInfo.appName, appInfo.appVersion, appInfo.deviceName, appInfo.deviceId, capabilities, window.devicePixelRatio); defineConnectionManager(connectionManager); bindConnectionManagerEvents(connectionManager, events, userSettings); @@ -2802,6 +2806,7 @@ var AppInfo = {}; })(); function pageClassOn(eventName, className, fn) { + 'use strict'; document.addEventListener(eventName, function (e) { @@ -2813,6 +2818,7 @@ function pageClassOn(eventName, className, fn) { } function pageIdOn(eventName, id, fn) { + 'use strict'; document.addEventListener(eventName, function (e) { @@ -2824,6 +2830,7 @@ function pageIdOn(eventName, id, fn) { } pageClassOn('viewinit', "page", function () { + 'use strict'; var page = this; @@ -2864,6 +2871,7 @@ pageClassOn('viewinit', "page", function () { }); pageClassOn('viewshow', "page", function () { + 'use strict'; var page = this; diff --git a/dashboard-ui/scripts/songs.js b/dashboard-ui/scripts/songs.js index bf55bb070..33c8fc29c 100644 --- a/dashboard-ui/scripts/songs.js +++ b/dashboard-ui/scripts/songs.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'listView', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, listView) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/streamingsettings.js b/dashboard-ui/scripts/streamingsettings.js index 748821eb4..57c23178d 100644 --- a/dashboard-ui/scripts/streamingsettings.js +++ b/dashboard-ui/scripts/streamingsettings.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function loadPage(page, config) { diff --git a/dashboard-ui/scripts/supporterkeypage.js b/dashboard-ui/scripts/supporterkeypage.js index 1247d2999..61059375d 100644 --- a/dashboard-ui/scripts/supporterkeypage.js +++ b/dashboard-ui/scripts/supporterkeypage.js @@ -1,4 +1,5 @@ define(['fetchHelper', 'jQuery', 'registrationServices'], function (fetchHelper, $, registrationServices) { + 'use strict'; function load(page) { Dashboard.showLoadingMsg(); diff --git a/dashboard-ui/scripts/syncactivity.js b/dashboard-ui/scripts/syncactivity.js index fbb516177..4800c9a60 100644 --- a/dashboard-ui/scripts/syncactivity.js +++ b/dashboard-ui/scripts/syncactivity.js @@ -1,4 +1,5 @@ define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'scripts/taskbutton', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events, taskButton) { + 'use strict'; function getTabs() { return [ diff --git a/dashboard-ui/scripts/syncjob.js b/dashboard-ui/scripts/syncjob.js index 458198dd4..de0475038 100644 --- a/dashboard-ui/scripts/syncjob.js +++ b/dashboard-ui/scripts/syncjob.js @@ -1,4 +1,5 @@ define(['datetime', 'dom', 'listViewStyle', 'paper-icon-button-light', 'emby-button'], function (datetime, dom) { + 'use strict'; function renderJob(page, job, dialogOptions) { diff --git a/dashboard-ui/scripts/syncsettings.js b/dashboard-ui/scripts/syncsettings.js index 6402578e2..f7c99178a 100644 --- a/dashboard-ui/scripts/syncsettings.js +++ b/dashboard-ui/scripts/syncsettings.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function loadPage(page, config) { diff --git a/dashboard-ui/scripts/taskbutton.js b/dashboard-ui/scripts/taskbutton.js index 273acfa84..b3a8f9560 100644 --- a/dashboard-ui/scripts/taskbutton.js +++ b/dashboard-ui/scripts/taskbutton.js @@ -1,4 +1,5 @@ define(['userSettings', 'emby-button'], function (userSettings) { + 'use strict'; return function (options) { diff --git a/dashboard-ui/scripts/tvgenres.js b/dashboard-ui/scripts/tvgenres.js index 58151d19a..070618c67 100644 --- a/dashboard-ui/scripts/tvgenres.js +++ b/dashboard-ui/scripts/tvgenres.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder'], function (libraryBrowser, cardBuilder) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/tvlatest.js b/dashboard-ui/scripts/tvlatest.js index 661e9aee3..62d2fe7fe 100644 --- a/dashboard-ui/scripts/tvlatest.js +++ b/dashboard-ui/scripts/tvlatest.js @@ -1,4 +1,5 @@ define(['components/categorysyncbuttons', 'components/groupedcards', 'cardBuilder'], function (categorysyncbuttons, groupedcards, cardBuilder) { + 'use strict'; function getView() { diff --git a/dashboard-ui/scripts/tvrecommended.js b/dashboard-ui/scripts/tvrecommended.js index 402bfd756..73e6afecc 100644 --- a/dashboard-ui/scripts/tvrecommended.js +++ b/dashboard-ui/scripts/tvrecommended.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'dom', 'components/categorysyncbuttons', 'cardBuilder', 'apphost', 'scrollStyles', 'emby-itemscontainer', 'emby-tabs', 'emby-button'], function (libraryBrowser, dom, categorysyncbuttons, cardBuilder, appHost) { + 'use strict'; return function (view, params) { diff --git a/dashboard-ui/scripts/tvshows.js b/dashboard-ui/scripts/tvshows.js index a1d818f1f..d68423a53 100644 --- a/dashboard-ui/scripts/tvshows.js +++ b/dashboard-ui/scripts/tvshows.js @@ -1,4 +1,5 @@ define(['events', 'libraryBrowser', 'imageLoader', 'alphaPicker', 'listView', 'cardBuilder', 'apphost', 'emby-itemscontainer'], function (events, libraryBrowser, imageLoader, alphaPicker, listView, cardBuilder, appHost) { + 'use strict'; return function (view, params, tabContent) { diff --git a/dashboard-ui/scripts/tvstudios.js b/dashboard-ui/scripts/tvstudios.js index e2cb90bc4..62798ed26 100644 --- a/dashboard-ui/scripts/tvstudios.js +++ b/dashboard-ui/scripts/tvstudios.js @@ -1,4 +1,5 @@ define(['libraryBrowser', 'cardBuilder', 'apphost'], function (libraryBrowser, cardBuilder, appHost) { + 'use strict'; // The base query options var data = {}; diff --git a/dashboard-ui/scripts/tvupcoming.js b/dashboard-ui/scripts/tvupcoming.js index 2997c17dd..db5441a42 100644 --- a/dashboard-ui/scripts/tvupcoming.js +++ b/dashboard-ui/scripts/tvupcoming.js @@ -1,4 +1,5 @@ define(['datetime', 'libraryBrowser', 'cardBuilder', 'apphost', 'scrollStyles', 'emby-itemscontainer'], function (datetime, libraryBrowser, cardBuilder, appHost) { + 'use strict'; function getUpcomingPromise(context, params) { diff --git a/dashboard-ui/scripts/useredit.js b/dashboard-ui/scripts/useredit.js index 1972176a3..7d1ed677d 100644 --- a/dashboard-ui/scripts/useredit.js +++ b/dashboard-ui/scripts/useredit.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; var currentUser; diff --git a/dashboard-ui/scripts/userlibraryaccess.js b/dashboard-ui/scripts/userlibraryaccess.js index 6d688424e..6bf4bc878 100644 --- a/dashboard-ui/scripts/userlibraryaccess.js +++ b/dashboard-ui/scripts/userlibraryaccess.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked'], function ($) { + 'use strict'; function loadMediaFolders(page, user, mediaFolders) { diff --git a/dashboard-ui/scripts/usernew.js b/dashboard-ui/scripts/usernew.js index 2efd3d4a5..d164ae911 100644 --- a/dashboard-ui/scripts/usernew.js +++ b/dashboard-ui/scripts/usernew.js @@ -1,4 +1,5 @@ define(['jQuery', 'fnchecked', 'emby-checkbox'], function ($) { + 'use strict'; function loadMediaFolders(page, mediaFolders) { diff --git a/dashboard-ui/scripts/userparentalcontrol.js b/dashboard-ui/scripts/userparentalcontrol.js index 6c75a13ba..ee7952002 100644 --- a/dashboard-ui/scripts/userparentalcontrol.js +++ b/dashboard-ui/scripts/userparentalcontrol.js @@ -1,4 +1,5 @@ define(['jQuery', 'datetime', 'listViewStyle', 'paper-icon-button-light'], function ($, datetime) { + 'use strict'; function populateRatings(allParentalRatings, page) { diff --git a/dashboard-ui/scripts/userpassword.js b/dashboard-ui/scripts/userpassword.js index 87389832c..e366129be 100644 --- a/dashboard-ui/scripts/userpassword.js +++ b/dashboard-ui/scripts/userpassword.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function loadUser(page, user) { diff --git a/dashboard-ui/scripts/userpasswordpage.js b/dashboard-ui/scripts/userpasswordpage.js index fdcf24bb7..b0bb72977 100644 --- a/dashboard-ui/scripts/userpasswordpage.js +++ b/dashboard-ui/scripts/userpasswordpage.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function loadUser(page, params) { diff --git a/dashboard-ui/scripts/userprofilespage.js b/dashboard-ui/scripts/userprofilespage.js index f68f2c98c..fab2eb905 100644 --- a/dashboard-ui/scripts/userprofilespage.js +++ b/dashboard-ui/scripts/userprofilespage.js @@ -1,4 +1,5 @@ define(['jQuery', 'humanedate', 'paper-icon-button-light', 'cardStyle'], function ($) { + 'use strict'; function deleteUser(page, id) { diff --git a/dashboard-ui/scripts/wizardagreement.js b/dashboard-ui/scripts/wizardagreement.js index 09ef593ba..9e39c0482 100644 --- a/dashboard-ui/scripts/wizardagreement.js +++ b/dashboard-ui/scripts/wizardagreement.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function onSubmit() { diff --git a/dashboard-ui/scripts/wizardcontroller.js b/dashboard-ui/scripts/wizardcontroller.js index aa770f4d6..3f2e5c73c 100644 --- a/dashboard-ui/scripts/wizardcontroller.js +++ b/dashboard-ui/scripts/wizardcontroller.js @@ -1,4 +1,5 @@ define([], function () { + 'use strict'; function navigateToComponents() { var apiClient = ApiClient; diff --git a/dashboard-ui/scripts/wizardlivetvguide.js b/dashboard-ui/scripts/wizardlivetvguide.js index 11b0749dc..6081f8972 100644 --- a/dashboard-ui/scripts/wizardlivetvguide.js +++ b/dashboard-ui/scripts/wizardlivetvguide.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; var guideController; diff --git a/dashboard-ui/scripts/wizardlivetvtuner.js b/dashboard-ui/scripts/wizardlivetvtuner.js index 89a862f6a..1e654deef 100644 --- a/dashboard-ui/scripts/wizardlivetvtuner.js +++ b/dashboard-ui/scripts/wizardlivetvtuner.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function save(page) { diff --git a/dashboard-ui/scripts/wizardsettings.js b/dashboard-ui/scripts/wizardsettings.js index fcd69a6e2..51ab66688 100644 --- a/dashboard-ui/scripts/wizardsettings.js +++ b/dashboard-ui/scripts/wizardsettings.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function save(page) { diff --git a/dashboard-ui/scripts/wizardstartpage.js b/dashboard-ui/scripts/wizardstartpage.js index 819f21a9a..e434c602a 100644 --- a/dashboard-ui/scripts/wizardstartpage.js +++ b/dashboard-ui/scripts/wizardstartpage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function loadPage(page, config, languageOptions) { diff --git a/dashboard-ui/scripts/wizarduserpage.js b/dashboard-ui/scripts/wizarduserpage.js index 5608fba3a..f87b4781f 100644 --- a/dashboard-ui/scripts/wizarduserpage.js +++ b/dashboard-ui/scripts/wizarduserpage.js @@ -1,4 +1,5 @@ define(['jQuery'], function ($) { + 'use strict'; function getApiClient() { return ApiClient; diff --git a/dashboard-ui/themes/halloween/theme.js b/dashboard-ui/themes/halloween/theme.js index 2e534ad27..5b9a1465d 100644 --- a/dashboard-ui/themes/halloween/theme.js +++ b/dashboard-ui/themes/halloween/theme.js @@ -1,4 +1,5 @@ define(['appSettings', 'backdrop', 'browser', 'globalize', 'css!./style.css', 'paper-icon-button-light'], function (appSettings, backdrop, browser, globalize) { + 'use strict'; var lastSound = 0; var iconCreated; diff --git a/dashboard-ui/themes/holiday/theme.js b/dashboard-ui/themes/holiday/theme.js index da66dbcea..207e1cf03 100644 --- a/dashboard-ui/themes/holiday/theme.js +++ b/dashboard-ui/themes/holiday/theme.js @@ -1,4 +1,5 @@ (function () { + 'use strict'; var lastSound = 0; var iconCreated;