move files
This commit is contained in:
parent
c70e23b493
commit
e7b947c1ca
1 changed files with 19 additions and 1 deletions
|
@ -293,7 +293,25 @@ Ox.FilesView = function(options, self) {
|
|||
title: 'Move Files',
|
||||
width: 116
|
||||
})
|
||||
.css({margin: '0 4px 4px 4px'});
|
||||
.css({margin: '0 4px 4px 4px'})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
var itemId = self.$idInput.value();
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
pandora.api.moveFiles({
|
||||
ids: self.selected,
|
||||
itemId: itemId
|
||||
}, function() {
|
||||
if(self.$checkbox.value()) {
|
||||
pandora.URL.set(itemId);
|
||||
} else {
|
||||
Ox.print('moved', self.selected, itemId);
|
||||
self.$filesList.reloadList();
|
||||
self.$instancesList.reloadList();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
self.$moviePanel = Ox.Element()
|
||||
.append(self.$movieLabel)
|
||||
|
|
Loading…
Reference in a new issue