From e6b49b908e10f51b173b3f4cf0b0ac2610beac0f Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 5 Nov 2011 18:04:10 +0100 Subject: [PATCH] 'use strict'; --- static/js/pandora/Query.js | 5 +++++ static/js/pandora/UI.js | 3 +++ static/js/pandora/URL.js | 2 ++ static/js/pandora/account.js | 2 ++ static/js/pandora/appPanel.js | 1 + static/js/pandora/autovalidate.js | 2 ++ static/js/pandora/backButton.js | 1 + static/js/pandora/browser.js | 1 + static/js/pandora/clipList.js | 2 ++ static/js/pandora/clipPlayer.js | 1 + static/js/pandora/clipsView.js | 2 ++ static/js/pandora/contactForm.js | 2 ++ static/js/pandora/contentPanel.js | 1 + static/js/pandora/deleteListDialog.js | 2 ++ static/js/pandora/editor.js | 2 ++ static/js/pandora/eventsDialog.js | 2 ++ static/js/pandora/filesView.js | 2 ++ static/js/pandora/filter.js | 3 +++ static/js/pandora/filterDialog.js | 1 + static/js/pandora/findElement.js | 1 + static/js/pandora/folderBrowser.js | 1 + static/js/pandora/folderBrowserBar.js | 1 + static/js/pandora/folderBrowserList.js | 1 + static/js/pandora/folderList.js | 2 +- static/js/pandora/folders.js | 1 + static/js/pandora/group.js | 1 + static/js/pandora/helpDialog.js | 1 + static/js/pandora/home.js | 2 ++ static/js/pandora/homePage.js | 2 ++ static/js/pandora/info.js | 1 + static/js/pandora/infoView.js | 2 ++ static/js/pandora/itemClips.js | 2 ++ static/js/pandora/leftPanel.js | 1 + static/js/pandora/listDialog.js | 2 ++ static/js/pandora/logsDialog.js | 2 ++ static/js/pandora/mainPanel.js | 1 + static/js/pandora/mediaView.js | 2 ++ static/js/pandora/menu.js | 1 + static/js/pandora/namesDialog.js | 1 + static/js/pandora/navigationView.js | 2 +- static/js/pandora/orderButton.js | 2 +- static/js/pandora/placesDialog.js | 2 ++ static/js/pandora/preferencesDialog.js | 2 ++ static/js/pandora/publicLists.js | 1 + static/js/pandora/rightPanel.js | 2 ++ static/js/pandora/sectionButtons.js | 1 + static/js/pandora/sectionSelect.js | 1 + static/js/pandora/sectionbar.js | 1 + static/js/pandora/siteDialog.js | 3 +++ static/js/pandora/sortMenu.js | 2 ++ static/js/pandora/sortSelect.js | 2 ++ static/js/pandora/status.js | 1 + static/js/pandora/statusbar.js | 1 + static/js/pandora/titlesDialog.js | 1 + static/js/pandora/toolbar.js | 2 ++ static/js/pandora/usersDialog.js | 3 +++ static/js/pandora/utils.js | 2 ++ static/js/pandora/videoPreview.js | 2 ++ static/js/pandora/viewSelect.js | 2 ++ 59 files changed, 97 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/Query.js b/static/js/pandora/Query.js index 5db5d9c4..1751ff3e 100644 --- a/static/js/pandora/Query.js +++ b/static/js/pandora/Query.js @@ -1,4 +1,9 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript + +'use strict'; + +// FIXME: remove this + pandora.Query = (function() { function constructFind(query) { diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index ad9e4ec4..e764425b 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -1,4 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript + +'use strict'; + pandora.UI = (function() { var self = {}, that = {}; diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 65fad107..6f2ed3e2 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.URL = (function() { var self = {}, that = {}; diff --git a/static/js/pandora/account.js b/static/js/pandora/account.js index bf442cfc..23234cd9 100644 --- a/static/js/pandora/account.js +++ b/static/js/pandora/account.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.accountDialog = function(action) { var that = Ox.Dialog(Ox.extend({ fixedSize: true, diff --git a/static/js/pandora/appPanel.js b/static/js/pandora/appPanel.js index 6b55a46d..17c7e433 100644 --- a/static/js/pandora/appPanel.js +++ b/static/js/pandora/appPanel.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.appPanel = function() { var that = Ox.SplitPanel({ elements: [ diff --git a/static/js/pandora/autovalidate.js b/static/js/pandora/autovalidate.js index d848dfe3..38a11bad 100644 --- a/static/js/pandora/autovalidate.js +++ b/static/js/pandora/autovalidate.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.autovalidateCode = function(value, blur, callback) { value = value.toUpperCase().split('').map(function(v) { return /[A-Z]/.test(v) ? v : null; diff --git a/static/js/pandora/backButton.js b/static/js/pandora/backButton.js index d21b7cfa..91a72b00 100644 --- a/static/js/pandora/backButton.js +++ b/static/js/pandora/backButton.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.backButton = function() { var that = Ox.Button({ title: 'Back to ' + pandora.site.itemName.plural, diff --git a/static/js/pandora/browser.js b/static/js/pandora/browser.js index dd284d2b..37c38f09 100644 --- a/static/js/pandora/browser.js +++ b/static/js/pandora/browser.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.browser = function() { var that; if (!pandora.user.ui.item) { diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index 0dba9b17..de563dd3 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.clipList = function(videoRatio) { var ui = pandora.user.ui, diff --git a/static/js/pandora/clipPlayer.js b/static/js/pandora/clipPlayer.js index 7de17cae..8fd209a3 100644 --- a/static/js/pandora/clipPlayer.js +++ b/static/js/pandora/clipPlayer.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.clipPlayer = function() { // FIXME: is clipPlayer the best name for this? var that = Ox.VideoPlayer({ diff --git a/static/js/pandora/clipsView.js b/static/js/pandora/clipsView.js index 7fe75c10..667828f0 100644 --- a/static/js/pandora/clipsView.js +++ b/static/js/pandora/clipsView.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.clipsView = function(videoRatio) { var that = Ox.SplitPanel({ diff --git a/static/js/pandora/contactForm.js b/static/js/pandora/contactForm.js index 029ec267..dae1b6fe 100644 --- a/static/js/pandora/contactForm.js +++ b/static/js/pandora/contactForm.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.contactForm = function() { var that = Ox.Element(), diff --git a/static/js/pandora/contentPanel.js b/static/js/pandora/contentPanel.js index 66942ed5..56a8f7bc 100644 --- a/static/js/pandora/contentPanel.js +++ b/static/js/pandora/contentPanel.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.contentPanel = function() { var that = Ox.SplitPanel({ elements: !pandora.user.ui.item ? [ diff --git a/static/js/pandora/deleteListDialog.js b/static/js/pandora/deleteListDialog.js index b6e5a125..a92d19e7 100644 --- a/static/js/pandora/deleteListDialog.js +++ b/static/js/pandora/deleteListDialog.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.deleteListDialog = function() { var listData = pandora.getListData(), diff --git a/static/js/pandora/editor.js b/static/js/pandora/editor.js index 7db0515a..5cb981fb 100644 --- a/static/js/pandora/editor.js +++ b/static/js/pandora/editor.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + // fixme: this should be deleted!! pandora.ui.annotations = function() { diff --git a/static/js/pandora/eventsDialog.js b/static/js/pandora/eventsDialog.js index 139a96f1..bf4a6ebb 100644 --- a/static/js/pandora/eventsDialog.js +++ b/static/js/pandora/eventsDialog.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.eventsDialog = function() { var height = Math.round((window.innerHeight - 48) * 0.9), width = Math.round(window.innerWidth * 0.9), diff --git a/static/js/pandora/filesView.js b/static/js/pandora/filesView.js index 3e0c8d42..2def4ca6 100644 --- a/static/js/pandora/filesView.js +++ b/static/js/pandora/filesView.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.filesView = function(options, self) { var self = self || {}, diff --git a/static/js/pandora/filter.js b/static/js/pandora/filter.js index e4c6e57c..d49751fa 100644 --- a/static/js/pandora/filter.js +++ b/static/js/pandora/filter.js @@ -1,4 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript + +'use strict'; + pandora.ui.filter = function(list) { var that = Ox.Filter({ findKeys: Ox.merge(Ox.map(pandora.site.itemKeys, function(key) { diff --git a/static/js/pandora/filterDialog.js b/static/js/pandora/filterDialog.js index 7386c901..7d9e6a75 100644 --- a/static/js/pandora/filterDialog.js +++ b/static/js/pandora/filterDialog.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.filterDialog = function(list) { var that = Ox.Dialog({ buttons: [ diff --git a/static/js/pandora/findElement.js b/static/js/pandora/findElement.js index 8a6c8f4c..ec58b97c 100644 --- a/static/js/pandora/findElement.js +++ b/static/js/pandora/findElement.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.findElement = function() { var findIndex = pandora.user.ui._findState.index, findKey = pandora.user.ui._findState.key, diff --git a/static/js/pandora/folderBrowser.js b/static/js/pandora/folderBrowser.js index 6cef76e1..4275ab4e 100644 --- a/static/js/pandora/folderBrowser.js +++ b/static/js/pandora/folderBrowser.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.folderBrowser = function(id) { var that = Ox.SplitPanel({ elements: [ diff --git a/static/js/pandora/folderBrowserBar.js b/static/js/pandora/folderBrowserBar.js index 6cbf08c7..7b5e8c3c 100644 --- a/static/js/pandora/folderBrowserBar.js +++ b/static/js/pandora/folderBrowserBar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.folderBrowserBar = function(id) { var that = Ox.Bar({ size: 24 diff --git a/static/js/pandora/folderBrowserList.js b/static/js/pandora/folderBrowserList.js index 98e84b4f..2354e2f1 100644 --- a/static/js/pandora/folderBrowserList.js +++ b/static/js/pandora/folderBrowserList.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.folderBrowserList = function(id) { // fixme: user and name are set to the same width here, // but resizeFolders will set them to different widths diff --git a/static/js/pandora/folderList.js b/static/js/pandora/folderList.js index 7666afcd..ab134aa5 100644 --- a/static/js/pandora/folderList.js +++ b/static/js/pandora/folderList.js @@ -1,5 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript - +'use strict'; pandora.ui.folderList = function(id) { var i = Ox.getPositionById(pandora.site.sectionFolders[pandora.user.ui.section], id), that; diff --git a/static/js/pandora/folders.js b/static/js/pandora/folders.js index 5ae15973..89ca123b 100644 --- a/static/js/pandora/folders.js +++ b/static/js/pandora/folders.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.folders = function() { var ui = pandora.user.ui, that = Ox.Element() diff --git a/static/js/pandora/group.js b/static/js/pandora/group.js index b4a47c64..f3677260 100644 --- a/static/js/pandora/group.js +++ b/static/js/pandora/group.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.group = function(id) { var i = Ox.getPositionById(pandora.user.ui.groups, id), group = Ox.getObjectById(pandora.site.groups, id), diff --git a/static/js/pandora/helpDialog.js b/static/js/pandora/helpDialog.js index 2864e080..07c80299 100644 --- a/static/js/pandora/helpDialog.js +++ b/static/js/pandora/helpDialog.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.helpDialog = function() { var content = Ox.Element().css({margin: '16px'}), that = Ox.Dialog({ diff --git a/static/js/pandora/home.js b/static/js/pandora/home.js index f5d9a86c..b8285aa1 100644 --- a/static/js/pandora/home.js +++ b/static/js/pandora/home.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.home = function() { var that = $('
') diff --git a/static/js/pandora/homePage.js b/static/js/pandora/homePage.js index 5d17fc7e..587fd234 100644 --- a/static/js/pandora/homePage.js +++ b/static/js/pandora/homePage.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + // fixme: remove pandora.ui.homePage = function() { diff --git a/static/js/pandora/info.js b/static/js/pandora/info.js index ce9fbd1f..33e9eaba 100644 --- a/static/js/pandora/info.js +++ b/static/js/pandora/info.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.info = function() { var ui = pandora.user.ui, diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index dea4d865..a4ca0237 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -1,3 +1,5 @@ +'use strict'; + pandora.ui.infoView = function(data) { // fixme: given that currently, the info view doesn't scroll into view nicely diff --git a/static/js/pandora/itemClips.js b/static/js/pandora/itemClips.js index d394e806..2c9cbd15 100644 --- a/static/js/pandora/itemClips.js +++ b/static/js/pandora/itemClips.js @@ -1,3 +1,5 @@ +'use strict'; + pandora.ui.itemClips = function(options) { var self = {}, diff --git a/static/js/pandora/leftPanel.js b/static/js/pandora/leftPanel.js index 1a8a4036..850f0b5b 100644 --- a/static/js/pandora/leftPanel.js +++ b/static/js/pandora/leftPanel.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.leftPanel = function() { var that = Ox.SplitPanel({ elements: [ diff --git a/static/js/pandora/listDialog.js b/static/js/pandora/listDialog.js index f704b5d4..09f4a5e2 100644 --- a/static/js/pandora/listDialog.js +++ b/static/js/pandora/listDialog.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.listDialog = function(section) { section = section || 'general'; diff --git a/static/js/pandora/logsDialog.js b/static/js/pandora/logsDialog.js index a510164e..7ac9c5f0 100644 --- a/static/js/pandora/logsDialog.js +++ b/static/js/pandora/logsDialog.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.logsDialog = function() { var height = Math.round((window.innerHeight - 48) * 0.9), width = Math.round(window.innerWidth * 0.9), diff --git a/static/js/pandora/mainPanel.js b/static/js/pandora/mainPanel.js index 09b898fa..0a415b6b 100644 --- a/static/js/pandora/mainPanel.js +++ b/static/js/pandora/mainPanel.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.mainPanel = function() { var that = Ox.SplitPanel({ elements: [ diff --git a/static/js/pandora/mediaView.js b/static/js/pandora/mediaView.js index d4fcdd47..ff875c33 100644 --- a/static/js/pandora/mediaView.js +++ b/static/js/pandora/mediaView.js @@ -1,3 +1,5 @@ +'use strict'; + pandora.ui.mediaView = function() { var item = pandora.user.ui.item, diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index e3ba66d9..22c65302 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.mainMenu = function() { var isAdmin = pandora.user.level == 'admin', diff --git a/static/js/pandora/namesDialog.js b/static/js/pandora/namesDialog.js index 89059320..472c8515 100644 --- a/static/js/pandora/namesDialog.js +++ b/static/js/pandora/namesDialog.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.namesDialog = function() { // FIXME: add cache invalidation diff --git a/static/js/pandora/navigationView.js b/static/js/pandora/navigationView.js index db924d68..ef3a93e5 100644 --- a/static/js/pandora/navigationView.js +++ b/static/js/pandora/navigationView.js @@ -1,5 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript - +'use strict'; pandora.ui.navigationView = function(type, videoRatio) { var ui = pandora.user.ui, diff --git a/static/js/pandora/orderButton.js b/static/js/pandora/orderButton.js index e4f14c0e..5812afb8 100644 --- a/static/js/pandora/orderButton.js +++ b/static/js/pandora/orderButton.js @@ -1,5 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript - +'use strict'; pandora.ui.orderButton = function(isNavigationView) { var sortKey = !pandora.user.ui.item ? 'listSort' : 'itemSort', that = Ox.Button({ diff --git a/static/js/pandora/placesDialog.js b/static/js/pandora/placesDialog.js index 60abf577..fa40663b 100644 --- a/static/js/pandora/placesDialog.js +++ b/static/js/pandora/placesDialog.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.placesDialog = function() { var height = Math.round((window.innerHeight - 48) * 0.9), width = Math.round(window.innerWidth * 0.9), diff --git a/static/js/pandora/preferencesDialog.js b/static/js/pandora/preferencesDialog.js index 19f277bb..d7d78439 100644 --- a/static/js/pandora/preferencesDialog.js +++ b/static/js/pandora/preferencesDialog.js @@ -1,3 +1,5 @@ +'use strict'; + pandora.ui.preferencesDialog = function() { var tabs = [ diff --git a/static/js/pandora/publicLists.js b/static/js/pandora/publicLists.js index 58b6752d..8ffd75ed 100644 --- a/static/js/pandora/publicLists.js +++ b/static/js/pandora/publicLists.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.publicListsDialog = function() { // fixme: unused var that = Ox.Dialog({ buttons: [ diff --git a/static/js/pandora/rightPanel.js b/static/js/pandora/rightPanel.js index 9d3d2a2a..8c59ecc6 100644 --- a/static/js/pandora/rightPanel.js +++ b/static/js/pandora/rightPanel.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.rightPanel = function() { var that; if (pandora.user.ui.section == 'items') { diff --git a/static/js/pandora/sectionButtons.js b/static/js/pandora/sectionButtons.js index dd1b0a9d..f97c2df6 100644 --- a/static/js/pandora/sectionButtons.js +++ b/static/js/pandora/sectionButtons.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.sectionButtons = function() { var that = Ox.ButtonGroup({ buttons: [ diff --git a/static/js/pandora/sectionSelect.js b/static/js/pandora/sectionSelect.js index ee1fe3cb..7ab0d060 100644 --- a/static/js/pandora/sectionSelect.js +++ b/static/js/pandora/sectionSelect.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.sectionSelect = function() { // fixme: duplicated var that = Ox.Select({ diff --git a/static/js/pandora/sectionbar.js b/static/js/pandora/sectionbar.js index 0a6f15d5..2b072863 100644 --- a/static/js/pandora/sectionbar.js +++ b/static/js/pandora/sectionbar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.sectionbar = function(mode) { var that = Ox.Bar({ size: 24 diff --git a/static/js/pandora/siteDialog.js b/static/js/pandora/siteDialog.js index 36945648..738d82b5 100644 --- a/static/js/pandora/siteDialog.js +++ b/static/js/pandora/siteDialog.js @@ -1,4 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript + +'use strict'; + pandora.ui.siteDialog = function(section) { var tabs = Ox.merge( diff --git a/static/js/pandora/sortMenu.js b/static/js/pandora/sortMenu.js index a376c4d9..70becfef 100644 --- a/static/js/pandora/sortMenu.js +++ b/static/js/pandora/sortMenu.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.sortMenu = function() { // fixme: unused diff --git a/static/js/pandora/sortSelect.js b/static/js/pandora/sortSelect.js index b499f03b..36a31066 100644 --- a/static/js/pandora/sortSelect.js +++ b/static/js/pandora/sortSelect.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.sortSelect = function(isNavigationView) { var isClipView = pandora.isClipView(), items = [], diff --git a/static/js/pandora/status.js b/static/js/pandora/status.js index ad856f61..510e5990 100644 --- a/static/js/pandora/status.js +++ b/static/js/pandora/status.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.status = function(key, data) { var itemName = data.items != 1 ? pandora.site.itemName.plural : pandora.site.itemName.singular, segments = [], diff --git a/static/js/pandora/statusbar.js b/static/js/pandora/statusbar.js index 1d488ca2..c0ab5089 100644 --- a/static/js/pandora/statusbar.js +++ b/static/js/pandora/statusbar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.statusbar = function() { var that = Ox.Bar({ size: 16 diff --git a/static/js/pandora/titlesDialog.js b/static/js/pandora/titlesDialog.js index 5cc54741..14c2c3ee 100644 --- a/static/js/pandora/titlesDialog.js +++ b/static/js/pandora/titlesDialog.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.titlesDialog = function() { var height = Math.round((window.innerHeight - 48) * 0.9), diff --git a/static/js/pandora/toolbar.js b/static/js/pandora/toolbar.js index af514257..6d3bf669 100644 --- a/static/js/pandora/toolbar.js +++ b/static/js/pandora/toolbar.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.toolbar = function() { var ui = pandora.user.ui, isNavigationView = !ui.item diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index 508fb00f..49feecaf 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -1,4 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript + +'use strict'; + pandora.ui.usersDialog = function() { var height = Math.round((window.innerHeight - 48) * 0.9), diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 7946ad36..b1768de2 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.addList = function() { // addList(isSmart, isFrom) or addList(list) [=duplicate] var $folderList = pandora.$ui.folderList.personal, diff --git a/static/js/pandora/videoPreview.js b/static/js/pandora/videoPreview.js index 7f172a4c..cadf3ba4 100644 --- a/static/js/pandora/videoPreview.js +++ b/static/js/pandora/videoPreview.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.videoPreview = function(data) { var that = Ox.VideoPreview({ duration: data.duration, diff --git a/static/js/pandora/viewSelect.js b/static/js/pandora/viewSelect.js index b73639b8..fb9f76ad 100644 --- a/static/js/pandora/viewSelect.js +++ b/static/js/pandora/viewSelect.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + pandora.ui.viewSelect = function() { var ui = pandora.user.ui, sortKey = !ui.item ? 'listSort' : 'itemSort',