fix #1145 ('Move Files' button needs 'Moving Files' state)
This commit is contained in:
parent
db9e943b28
commit
43a12a1380
1 changed files with 6 additions and 1 deletions
|
@ -445,6 +445,9 @@ pandora.ui.filesView = function(options, self) {
|
||||||
['title', 'director', 'year'].forEach(function(key) {
|
['title', 'director', 'year'].forEach(function(key) {
|
||||||
data[key] = self['$' + key + 'Input'].value();
|
data[key] = self['$' + key + 'Input'].value();
|
||||||
});
|
});
|
||||||
|
self.$moveButton.options(
|
||||||
|
{disabled: true, title: 'Moving Files'}
|
||||||
|
);
|
||||||
pandora.api.moveFiles(data, function(result) {
|
pandora.api.moveFiles(data, function(result) {
|
||||||
if (
|
if (
|
||||||
pandora.user.ui.item == self.options.id
|
pandora.user.ui.item == self.options.id
|
||||||
|
@ -454,9 +457,11 @@ pandora.ui.filesView = function(options, self) {
|
||||||
if (self.$switch.value()) {
|
if (self.$switch.value()) {
|
||||||
pandora.UI.set({item: result.data.itemId});
|
pandora.UI.set({item: result.data.itemId});
|
||||||
} else {
|
} else {
|
||||||
Ox.Log('', 'moved', self.selected, result.data.itemId);
|
|
||||||
self.$filesList.reloadList();
|
self.$filesList.reloadList();
|
||||||
self.$instancesList.reloadList();
|
self.$instancesList.reloadList();
|
||||||
|
self.$moveButton.options(
|
||||||
|
{disabled: false, title: 'Move Files'}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue