fix editing document metadata

This commit is contained in:
j 2013-12-01 12:32:03 +00:00
parent 4f01ed254a
commit d7953540e5

View file

@ -429,7 +429,7 @@ pandora.ui.documentsDialog = function(options) {
.bindEvent({ .bindEvent({
change: function(event) { change: function(event) {
var data = Ox.extend({id: file.id}, event.id, event.data.value); var data = Ox.extend({id: file.id}, event.id, event.data.value);
pandora.api.editFile(data, function(result) { pandora.api.editDocument(data, function(result) {
$list.value(result.data.id, event.id, result.data[event.id]); $list.value(result.data.id, event.id, result.data[event.id]);
if (event.id == 'name') { if (event.id == 'name') {
$list.value(file.id, 'id', result.data.id); $list.value(file.id, 'id', result.data.id);