update item context on edit metadata

This commit is contained in:
rolux 2013-02-11 17:44:15 +05:30
parent c0e85fdbe8
commit 16162505ed
2 changed files with 2 additions and 0 deletions

View file

@ -423,6 +423,7 @@ pandora.ui.infoView = function(data) {
pandora.UI.set({item: result.data.id}); pandora.UI.set({item: result.data.id});
pandora.$ui.browser.value(data.id, 'id', result.data.id); pandora.$ui.browser.value(data.id, 'id', result.data.id);
} }
pandora.updateItemContext();
// FIXME: value function should accept {k: v, ...} // FIXME: value function should accept {k: v, ...}
pandora.$ui.browser.value(result.data.id, 'title', result.data.title); pandora.$ui.browser.value(result.data.id, 'title', result.data.title);
pandora.$ui.browser.value(result.data.id, 'director', result.data.director); pandora.$ui.browser.value(result.data.id, 'director', result.data.director);

View file

@ -557,6 +557,7 @@ pandora.ui.infoView = function(data) {
pandora.UI.set({item: result.data.id}); pandora.UI.set({item: result.data.id});
pandora.$ui.browser.value(data.id, 'id', result.data.id); pandora.$ui.browser.value(data.id, 'id', result.data.id);
} }
pandora.updateItemContext();
// FIXME: value function should accept {k: v, ...} // FIXME: value function should accept {k: v, ...}
pandora.$ui.browser.value(result.data.id, 'title', result.data.title); pandora.$ui.browser.value(result.data.id, 'title', result.data.title);
pandora.$ui.browser.value(result.data.id, 'director', result.data.director); pandora.$ui.browser.value(result.data.id, 'director', result.data.director);