replace one more editFile with editFiles

This commit is contained in:
j 2013-02-09 01:59:43 +00:00
parent d685485ee4
commit 5332c1225a

View file

@ -226,9 +226,11 @@ pandora.ui.filesView = function(options, self) {
if (data.key == 'selected') {
var ignored = self.$filesList.value(data.id, 'instances')
.filter(function(i) {return i.ignore; }).length > 0;
pandora.api.editFile({
id: data.id,
ignore: !ignored
pandora.api.editFiles({
files: [{
id: data.id,
ignore: !ignored
}]
}, function(result) {
Ox.Request.clearCache();
self.$filesList.reloadList();