ignore multiple files at once
This commit is contained in:
parent
aff6d748fb
commit
499b6ac204
2 changed files with 59 additions and 3 deletions
|
|
@ -33,15 +33,27 @@ pandora.ui.filesView = function(options, self) {
|
|||
})
|
||||
.appendTo(self.$toolbar);
|
||||
|
||||
self.$moveButton = Ox.Button({
|
||||
self.$ignoreButton = Ox.Button({
|
||||
disabled: 'true',
|
||||
title: 'Move Selected Files...'
|
||||
title: 'Ignore Selected Files...'
|
||||
})
|
||||
.css({
|
||||
float: 'right',
|
||||
margin: '4px'
|
||||
})
|
||||
.appendTo(self.$toolbar);
|
||||
.appendTo(self.$toolbar)
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
var data = {
|
||||
ids: self.selected,
|
||||
ignore: true
|
||||
};
|
||||
pandora.api.editFiles(data, function(result) {
|
||||
Ox.Request.clearCache();
|
||||
self.$filesList.reloadList();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
self.$filesList = Ox.TextList({
|
||||
columns: [
|
||||
|
|
@ -417,6 +429,9 @@ pandora.ui.filesView = function(options, self) {
|
|||
self.$moveButton.options({
|
||||
disabled: self.selected.length === 0
|
||||
});
|
||||
self.$ignoreButton.options({
|
||||
disabled: self.selected.length === 0
|
||||
});
|
||||
}
|
||||
|
||||
return that;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue