diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index 3be5005..2d73e00 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -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) {