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 5db5d9c4f..1751ff3ec 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 ad9e4ec49..e764425b6 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 65fad107f..6f2ed3e21 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 bf442cfc0..23234cd9f 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 6b55a46de..17c7e433c 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 d848dfe38..38a11bad8 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 d21b7cfad..91a72b00b 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 dd284d2b4..37c38f098 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 0dba9b179..de563dd31 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 7de17cae2..8fd209a3e 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 7fe75c109..667828f03 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 029ec267c..dae1b6fef 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 66942ed56..56a8f7bcd 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 b6e5a1258..a92d19e77 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 7db0515a5..5cb981fb8 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 139a96f12..bf4a6ebba 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 3e0c8d42b..2def4ca66 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 e4c6e57ce..d49751faf 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 7386c9017..7d9e6a756 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 8a6c8f4c3..ec58b97ca 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 6cef76e1d..4275ab4e4 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 6cbf08c7d..7b5e8c3c7 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 98e84b4f8..2354e2f17 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 7666afcd3..ab134aa56 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 5ae159731..89ca123b2 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 b4a47c64d..f36772608 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 2864e0807..07c802990 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 f5d9a86c6..b8285aa16 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 5d17fc7e0..587fd2344 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 ce9fbd1fe..33e9eaba4 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 dea4d8650..a4ca02372 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 d394e8060..2c9cbd15c 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 1a8a40361..850f0b5b3 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 f704b5d47..09f4a5e24 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 a510164e4..7ac9c5f06 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 09b898fad..0a415b6be 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 d4fcdd47f..ff875c33b 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 e3ba66d97..22c65302c 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 89059320b..472c85157 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 db924d68a..ef3a93e50 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 e4f14c0e8..5812afb83 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 60abf5773..fa40663b3 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 19f277bb1..d7d784391 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 58b6752d3..8ffd75edc 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 9d3d2a2a1..8c59ecc6f 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 dd1b0a9dc..f97c2df66 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 ee1fe3cb1..7ab0d0600 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 0a6f15d55..2b0728636 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 369456487..738d82b55 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 a376c4d9c..70becfeff 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 b499f03bc..36a31066f 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 ad856f615..510e5990f 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 1d488ca28..c0ab50892 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 5cc547413..14c2c3ee1 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 af514257e..6d3bf6695 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 508fb00fc..49feecaf6 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 7946ad36a..b1768de24 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 7f172a4c0..cadf3ba45 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 b73639b8c..fb9f76ada 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',