fix editing document metadata
This commit is contained in:
parent
4f01ed254a
commit
d7953540e5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue