forked from 0x2620/pandora
replace one more editFile with editFiles
This commit is contained in:
parent
d685485ee4
commit
5332c1225a
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue