use item not itemId for moveMedia

This commit is contained in:
j 2013-05-27 13:28:35 +00:00
commit 14f58532a8
2 changed files with 7 additions and 7 deletions

View file

@ -475,7 +475,7 @@ pandora.ui.mediaView = function(options, self) {
function moveFiles(data) {
var data = {
ids: self.selected,
itemId: self.$idInput.value()
item: self.$idInput.value()
};
['title', 'director', 'year'].forEach(function(key) {
data[key] = self['$' + key + 'Input'].value();
@ -490,7 +490,7 @@ pandora.ui.mediaView = function(options, self) {
) {
Ox.Request.clearCache(); // fixme: remove
if (self.$switch.value()) {
pandora.UI.set({item: result.data.itemId});
pandora.UI.set({item: result.data.item});
pandora.updateItemContext();
} else {
self.$filesList.reloadList();