moving files also needs reload

This commit is contained in:
j 2011-11-22 22:58:02 +01:00
parent fd7bd7a704
commit d4a5c45eb6

View file

@ -403,8 +403,8 @@ pandora.ui.filesView = function(options, self) {
}); });
pandora.api.moveFiles(data, function(result) { pandora.api.moveFiles(data, function(result) {
if(pandora.user.ui.item == self.options.id && pandora.user.ui.itemView == 'files') { if(pandora.user.ui.item == self.options.id && pandora.user.ui.itemView == 'files') {
Ox.Request.clearCache(); // fixme: remove
if (self.$checkbox.value()) { if (self.$checkbox.value()) {
Ox.Request.clearCache(); // fixme: remove
pandora.UI.set({item: result.data.itemId}); pandora.UI.set({item: result.data.itemId});
} else { } else {
Ox.Log('', 'moved', self.selected, result.data.itemId); Ox.Log('', 'moved', self.selected, result.data.itemId);