use item not itemId for moveMedia
This commit is contained in:
parent
85bb82f683
commit
14f58532a8
2 changed files with 7 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue