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') { if (data.key == 'selected') {
var ignored = self.$filesList.value(data.id, 'instances') var ignored = self.$filesList.value(data.id, 'instances')
.filter(function(i) {return i.ignore; }).length > 0; .filter(function(i) {return i.ignore; }).length > 0;
pandora.api.editFile({ pandora.api.editFiles({
id: data.id, files: [{
ignore: !ignored id: data.id,
ignore: !ignored
}]
}, function(result) { }, function(result) {
Ox.Request.clearCache(); Ox.Request.clearCache();
self.$filesList.reloadList(); self.$filesList.reloadList();