hook up deletefromlibrary in main menu
This commit is contained in:
parent
16a24fa5cc
commit
c18896e426
2 changed files with 9 additions and 0 deletions
|
@ -28,6 +28,10 @@ oml.ui.deleteItemsDialog = function() {
|
|||
oml.UI.set({listSelection: []});
|
||||
Ox.Request.clearCache(); // to much?
|
||||
oml.$ui.list.updateElement();
|
||||
oml.user.ui.item && oml.UI.set({
|
||||
item: '',
|
||||
itemView: 'info'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -377,6 +377,11 @@ oml.ui.mainMenu = function() {
|
|||
oml.addList(Ox.contains(id, 'smart'), Ox.contains(id, 'from'));
|
||||
} else if (id == 'duplicatelist') {
|
||||
oml.addList(ui._list);
|
||||
} else if (id == 'deletefromlibrary') {
|
||||
var listData = oml.getListData();
|
||||
if (listData.own) {
|
||||
oml.ui.deleteItemsDialog().open();
|
||||
}
|
||||
} else if (id == 'editlist') {
|
||||
oml.ui.listDialog.open();
|
||||
} else if (id == 'deletelist') {
|
||||
|
|
Loading…
Reference in a new issue