From 18f8b1a1f41b13acf5cc1c42303c59dc1c0dd5a8 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 15 Sep 2012 10:14:17 +0000 Subject: [PATCH] rename a variable in files view --- static/js/pandora/filesView.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/filesView.js b/static/js/pandora/filesView.js index 831dc203..018fab7f 100644 --- a/static/js/pandora/filesView.js +++ b/static/js/pandora/filesView.js @@ -341,7 +341,7 @@ pandora.ui.filesView = function(options, self) { }); }); - self.$checkbox = Ox.Checkbox({ + self.$switch = Ox.Checkbox({ id: 'go', title: 'Switch to this ' + pandora.site.itemName.singular.toLowerCase() @@ -356,7 +356,7 @@ pandora.ui.filesView = function(options, self) { self.$directorInput, self.$yearInput, self.$idInput, - self.$checkbox + self.$switch ], width: 240 }) @@ -445,7 +445,7 @@ pandora.ui.filesView = function(options, self) { && pandora.user.ui.itemView == 'files' ) { Ox.Request.clearCache(); // fixme: remove - if (self.$checkbox.value()) { + if (self.$switch.value()) { pandora.UI.set({item: result.data.itemId}); } else { Ox.Log('', 'moved', self.selected, result.data.itemId); @@ -485,13 +485,13 @@ pandora.ui.filesView = function(options, self) { function updateForm() { if (self.selected.length == self.numberOfItems) { - self.wasChecked = self.$checkbox.value(); - self.$checkbox.options({ + self.wasChecked = self.$switch.value(); + self.$switch.options({ disabled: true, value: true }); } else { - self.$checkbox.options({ + self.$switch.options({ disabled: false, value: self.wasChecked });