move files

This commit is contained in:
j 2011-06-15 15:04:57 +02:00
parent c70e23b493
commit e7b947c1ca

View file

@ -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)