hook up delete from list

This commit is contained in:
j 2015-02-27 17:58:01 +05:30
parent c18896e426
commit ec6765f325

View file

@ -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) {