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') {
|
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();
|
||||||
|
|
Loading…
Reference in a new issue