forked from 0x2620/pandora
update item context (0xDB, after reload metadata and edit metadata)
This commit is contained in:
parent
ff08c93714
commit
4431e4f5a3
1 changed files with 3 additions and 1 deletions
|
@ -606,7 +606,9 @@ pandora.ui.infoView = function(data) {
|
||||||
Ox.Request.clearCache(); // fixme: too much
|
Ox.Request.clearCache(); // fixme: too much
|
||||||
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);
|
||||||
|
// FIXME: does this update selected?
|
||||||
}
|
}
|
||||||
|
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);
|
||||||
|
@ -683,7 +685,7 @@ pandora.ui.infoView = function(data) {
|
||||||
pandora.api.updateExternalData({
|
pandora.api.updateExternalData({
|
||||||
id: ui.item
|
id: ui.item
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
//reloading metadata might change results too(i.e. genre)
|
pandora.updateItemContext();
|
||||||
Ox.Request.clearCache();
|
Ox.Request.clearCache();
|
||||||
if (ui.item == item && ui.itemView == 'info') {
|
if (ui.item == item && ui.itemView == 'info') {
|
||||||
pandora.$ui.contentPanel.replaceElement(
|
pandora.$ui.contentPanel.replaceElement(
|
||||||
|
|
Loading…
Reference in a new issue