hook up deletefromlibrary in main menu

This commit is contained in:
j 2015-02-27 16:33:20 +05:30
parent 16a24fa5cc
commit c18896e426
2 changed files with 9 additions and 0 deletions

View file

@ -28,6 +28,10 @@ oml.ui.deleteItemsDialog = function() {
oml.UI.set({listSelection: []}); oml.UI.set({listSelection: []});
Ox.Request.clearCache(); // to much? Ox.Request.clearCache(); // to much?
oml.$ui.list.updateElement(); oml.$ui.list.updateElement();
oml.user.ui.item && oml.UI.set({
item: '',
itemView: 'info'
});
}); });
}); });

View file

@ -377,6 +377,11 @@ oml.ui.mainMenu = function() {
oml.addList(Ox.contains(id, 'smart'), Ox.contains(id, 'from')); oml.addList(Ox.contains(id, 'smart'), Ox.contains(id, 'from'));
} else if (id == 'duplicatelist') { } else if (id == 'duplicatelist') {
oml.addList(ui._list); oml.addList(ui._list);
} else if (id == 'deletefromlibrary') {
var listData = oml.getListData();
if (listData.own) {
oml.ui.deleteItemsDialog().open();
}
} else if (id == 'editlist') { } else if (id == 'editlist') {
oml.ui.listDialog.open(); oml.ui.listDialog.open();
} else if (id == 'deletelist') { } else if (id == 'deletelist') {