improve handing of downloading/removing book in item view
This commit is contained in:
parent
bec86685b3
commit
3858bef3f4
2 changed files with 6 additions and 7 deletions
|
@ -32,14 +32,11 @@ oml.ui.deleteItemsDialog = function() {
|
||||||
oml.api.remove({
|
oml.api.remove({
|
||||||
ids: items
|
ids: items
|
||||||
}, function() {
|
}, function() {
|
||||||
oml.UI.set({listSelection: []});
|
Ox.Request.clearCache();
|
||||||
Ox.Request.clearCache(); // too much?
|
|
||||||
oml.$ui.info.updateElement();
|
|
||||||
oml.reloadLists();
|
oml.reloadLists();
|
||||||
oml.user.ui.item && oml.UI.set({
|
if (ui.item) {
|
||||||
item: '',
|
oml.$ui.infoView.updateElement(ui.item);
|
||||||
itemView: 'info'
|
}
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -781,6 +781,8 @@ oml.ui.infoView = function(externalData, isMixed) {
|
||||||
transfer: function(data) {
|
transfer: function(data) {
|
||||||
if (data.id == ui.item && data.progress == 1) {
|
if (data.id == ui.item && data.progress == 1) {
|
||||||
Ox.Request.clearCache(); // FIXME: too much
|
Ox.Request.clearCache(); // FIXME: too much
|
||||||
|
oml.$ui.list.value(ui.item, {mediastate: 'available'});
|
||||||
|
oml.$ui.browser.value(ui.item, {mediastate: 'available'});
|
||||||
that.updateElement(ui.item, [$icon, $info, $data]);
|
that.updateElement(ui.item, [$icon, $info, $data]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue