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({
|
||||
ids: items
|
||||
}, function() {
|
||||
oml.UI.set({listSelection: []});
|
||||
Ox.Request.clearCache(); // too much?
|
||||
oml.$ui.info.updateElement();
|
||||
Ox.Request.clearCache();
|
||||
oml.reloadLists();
|
||||
oml.user.ui.item && oml.UI.set({
|
||||
item: '',
|
||||
itemView: 'info'
|
||||
});
|
||||
if (ui.item) {
|
||||
oml.$ui.infoView.updateElement(ui.item);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue