From 43a12a13802025b43415147d0d272b4d149c1751 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 9 Nov 2012 13:06:33 +0100 Subject: [PATCH] fix #1145 ('Move Files' button needs 'Moving Files' state) --- static/js/pandora/filesView.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/filesView.js b/static/js/pandora/filesView.js index c2b966ebe..bb21e58fe 100644 --- a/static/js/pandora/filesView.js +++ b/static/js/pandora/filesView.js @@ -445,6 +445,9 @@ pandora.ui.filesView = function(options, self) { ['title', 'director', 'year'].forEach(function(key) { data[key] = self['$' + key + 'Input'].value(); }); + self.$moveButton.options( + {disabled: true, title: 'Moving Files'} + ); pandora.api.moveFiles(data, function(result) { if ( pandora.user.ui.item == self.options.id @@ -454,9 +457,11 @@ pandora.ui.filesView = function(options, self) { if (self.$switch.value()) { pandora.UI.set({item: result.data.itemId}); } else { - Ox.Log('', 'moved', self.selected, result.data.itemId); self.$filesList.reloadList(); self.$instancesList.reloadList(); + self.$moveButton.options( + {disabled: false, title: 'Move Files'} + ); } } });