Commit acde154f authored by Martin Urban's avatar Martin Urban
Browse files

File: fix #2001

parent b9fac4d2
......@@ -194,7 +194,7 @@ var FileBaseActions = Class.extend({
});
}
//self.FileBase.updateView();
this.entries = {};
this.entries = [];
});
},
......@@ -226,12 +226,15 @@ var FileBaseActions = Class.extend({
_remove: function() {
var self = this;
var dfd = self.FileBase.instance.GET("/ajax/fs/remove", {
"path": JSON.stringify(self.entries)
var dfd;
$.each(self.entries, function(i, entry){
dfd = self.FileBase.instance.GET("/ajax/fs/remove", {
"path": JSON.stringify(entry)
});
});
dfd.done(function() {
//self.FileBase.updateView();
this.entries = {};
self.entries = [];
});
},
......
......@@ -161,8 +161,11 @@ var FileBrowserView = vispa.ExtensionView.Center.extend({
// The following two parameters are defined in remote/filesystem.py
// MAX_INLINE_SUBJECTS = 10
// MAX_SUBJECT_NAMES = 25
self.fb.view.reactOnChange(data);
if (data.subject_count <= 10) {
self.fb.view.reactOnChange(data);
} else {
self.fb.updateView();
}
});
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment