hook up delete from list
This commit is contained in:
parent
c18896e426
commit
ec6765f325
1 changed files with 9 additions and 0 deletions
|
@ -377,6 +377,15 @@ 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 == 'delete') {
|
||||||
|
var listData = oml.getListData();
|
||||||
|
if (listData.editable && listData.type == 'static') {
|
||||||
|
oml.doHistory('delete', ui.listSelection, ui._list, function() {
|
||||||
|
oml.UI.set({listSelection: []});
|
||||||
|
oml.$ui.folders.updateItems();
|
||||||
|
oml.$ui.list.updateElement();
|
||||||
|
});
|
||||||
|
}
|
||||||
} else if (id == 'deletefromlibrary') {
|
} else if (id == 'deletefromlibrary') {
|
||||||
var listData = oml.getListData();
|
var listData = oml.getListData();
|
||||||
if (listData.own) {
|
if (listData.own) {
|
||||||
|
|
Loading…
Reference in a new issue