hook up delete from list

This commit is contained in:
j 2015-02-27 17:58:01 +05:30
parent c18896e426
commit ec6765f325
1 changed files with 9 additions and 0 deletions

View File

@ -377,6 +377,15 @@ 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 == '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') {
var listData = oml.getListData();
if (listData.own) {