diff --git a/dashboard-ui/components/accessschedule/accessschedule.js b/dashboard-ui/components/accessschedule/accessschedule.js index d6545acea3..0218869846 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 fd3fa49e8e..910db6f2e4 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 640926919a..fd8f1aa062 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 9e33c6bd1f..81ddc421a7 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 da3c83b8a6..c5c4087f0a 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 fd3a530740..990e5d673a 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 0bbe9502d1..c8d9d94fa3 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 961644ecda..6f17c6ad08 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 c16f6d029d..44a4b0bdc2 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 f3ca0eb770..8513cab196 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 47ec96cdfe..28ec10dc2a 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 ad8babd4c0..32ee494a42 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 2208392fd3..f4171d2534 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 5456b68a75..110fc9d852 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 52699c3196..71b631a058 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 9d414deed8..91271435fd 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 868afe05a6..1da87548be 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 056db76ca7..c28594d748 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 f30f3f1b03..dabc85a714 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 71f8d1735f..58998154c3 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 a313400053..d2b91cc386 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 273ace272e..21790dc597 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 e52cbd51da..e9986fd686 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 adae740796..900dc46596 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 066fb658d3..f5de8da7f1 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 f24d32a274..065650921e 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 6684928ae3..76454b428a 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 2f902a47ef..bd8b593a41 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 75a06f5e09..5f97d9149b 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 c1a1149cc7..2b231ed35d 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 5a411c2210..5c0d760e92 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 5de37b48b1..54d24c2b52 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 696a5b0ee8..af7db3f802 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 e59584d872..c3e6c26407 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 2dce166c73..cebbc67eae 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 1d3ebb2e5d..281582dd05 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 7d3e758640..a6cce7be13 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 d1d449f7b9..fa4f681d08 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 94634d787e..3897eeb024 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 1df33e941b..f6c454547c 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 8ebc48a1a7..1348490efb 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 9cc915e49c..a147255c0c 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 ce0d84ed7c..bd18e22b43 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 fd97fc189e..399d2f15e1 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 1005d73c61..db7eb810ee 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 959b8d617d..a867fb3793 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 746f391778..bdd591ee20 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 6bdb20d41c..137a17e039 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 167efa0a9d..2ff2363d15 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 c6ba242453..b877a5bfce 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 ee95da7d9d..40de447d36 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 954ae61290..91bb430f74 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 645a3790ab..076c127950 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 cb35915b3c..25a3be881f 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 15af12b809..3802ab0b6d 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 f03bf1180d..19b377ea9e 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 d844039030..5948801287 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 c3ed85ea2d..12f5c37e56 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 14c00f282c..aae8b42642 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 8e348cb5a0..636033f167 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 91902995ea..91325e5de5 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 8e2c8cedb2..69a91aab84 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 286eda3ea0..85f1e640a9 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 17770851ce..a45fa89415 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 abff05c6a9..b12e64a77e 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 eb5ac00d4c..e40a6a56d8 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 78e4216ba6..4879c69884 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 1431421d51..f795b90d35 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 836a06da9b..5c167a094f 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 8f809d01d3..bd67018746 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 c466fbbfe6..c3f4714143 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 ce1fdb3568..301e59cc3e 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 d168bd35c8..8fbcb0408f 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 f1231ff5a9..425016e157 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 85b14599dd..499c1206d5 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 75f07cace6..a8883eaf4f 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 3f0786a7fe..84eb97f22b 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 68ece16c01..2f82df73d4 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 05ab5985dc..47d863b986 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 8da3d3aa72..b33d14436e 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 842fc761b3..375dcc4931 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 db312cad41..8d398fed11 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 82d81b72a3..fecd7117d2 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 4753cb30a6..d947a18617 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 d53050ee24..dd017de286 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 e1f24c1e79..2dd1dc6fad 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 d925116a11..dbb7c55021 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 734bbf3ea1..185dcb56d3 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 37f5dc286e..ceb7ce4897 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 0662ec651c..8510f983e0 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 de413844f1..b5c16a3f89 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 956d6c9e77..3df532bed7 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 85442376e6..c4231c4a1a 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 a19578fa40..acf57c1f9e 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 8584c64184..4f51ba9fbe 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 37ee54af05..a8d18799a7 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 aead5dcb3f..07e323d71e 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 b8e79aad75..495ad3ac32 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 e563c273ea..c4753c126e 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 2b107e90ab..d81718f470 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 710e9ea8ef..f4fbbeed3d 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 59a5e827d6..4f93c00930 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 24a2e81b9c..832f6367bc 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 2ed88e3a33..2f5caa2af4 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 ba3b9e2b46..09bdbd5846 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 5d95441d49..05c499b5e3 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 dd25f82b54..2cb39c0af6 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 13f36a8eba..1c1f7ced53 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 626bbf222d..6cd72ca901 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 7e78fbcb7e..473f8954b3 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 7ef98822f5..3e95a4b5a8 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 586d2d5f49..df7008954c 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 2ad6bac06f..c6d865eeac 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 f4dd17cf03..cf3bbe4270 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 bf5f0d5dc3..6c9a469739 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 4b2da5aa09..8fd9465d09 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 bab36f1c95..0ef4e32bfa 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 7f0e0e76e7..3cf2ad5930 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 ac97e2b3d7..62cd210919 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 5122bda770..6ee665026e 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 4dccb875b9..ad1134935b 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 c427220838..82afc44133 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 3242b763e4..cb996bb74f 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 0e3caf9aa2..5b5febecad 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 9c06a5261c..5059e43a20 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 1643e57cbb..d0547eb2cd 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 209cfe9974..8c3436dbab 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 3ccbc44d66..161eef5cf5 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 3d81d2ca2c..cf7c88b7d9 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 45f6da1fb2..c316a0dd83 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 e45601bc84..0c49b3545f 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 0369472b42..b5da527208 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 7f169dd367..c09efa0184 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 768efcb71e..9a6ad2f8e4 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 0a8f149cf9..e9e2a245a3 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 82f462e17c..3c0443b74d 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 9db265a284..956e1fec8c 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 4019b9d569..555e760fdf 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 63a1701539..ee9360290b 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 4930d11de2..55b54601aa 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 28a6a45884..3ab28e217b 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 8d88b70c99..58ec8088e5 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 96580ff13a..89dd429bc9 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 c791c04039..fb581fe95d 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 5e39ca573e..727eeb6c5c 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 720ae7e2e7..f296e4da65 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 8234a7175a..627e9b7e0b 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 3861fddeb9..4418247d84 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 0cf184ecc5..44256a7a73 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 3a4632d808..b887203b5e 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 5b6f298f89..a3b3336054 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 bf55bb0708..33c8fc29cd 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 748821eb42..57c23178d8 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 1247d29997..61059375d2 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 fbb5161776..4800c9a607 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 458198dd48..de04750380 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 6402578e2e..f7c99178a1 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 273acfa841..b3a8f9560a 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 58151d19ac..070618c677 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 661e9aee31..62d2fe7fea 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 402bfd756e..73e6afecce 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 a1d818f1fe..d68423a538 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 e2cb90bc48..62798ed266 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 2997c17dd4..db5441a42c 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 1972176a36..7d1ed677d2 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 6d688424e4..6bf4bc8789 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 2efd3d4a54..d164ae911c 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 6c75a13ba2..ee79520022 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 87389832c1..e366129be3 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 fdcf24bb71..b0bb729778 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 f68f2c98c4..fab2eb905f 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 09ef593ba7..9e39c04826 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 aa770f4d6d..3f2e5c73cb 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 11b0749dcc..6081f8972e 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 89a862f6aa..1e654deef5 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 fcd69a6e27..51ab666881 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 819f21a9ac..e434c602aa 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 5608fba3af..f87b4781f2 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 2e534ad276..5b9a1465d3 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 da66dbcea4..207e1cf034 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;