remove dead code; handle listselection

This commit is contained in:
rlx 2016-01-17 15:43:17 +05:30
parent 2c57b043cd
commit c6613c30f6

View file

@ -493,16 +493,6 @@ oml.ui.mainMenu = function() {
that.replaceMenu('listMenu', getListMenu()); that.replaceMenu('listMenu', getListMenu());
that.replaceMenu('editMenu', getEditMenu()); that.replaceMenu('editMenu', getEditMenu());
that.replaceMenu('findMenu', getFindMenu()); that.replaceMenu('findMenu', getFindMenu());
/*
var action = Ox.startsWith(ui._list, ':') && ui._list != ':'
? 'enableItem' : 'disableItem';
that[
ui._list && !Ox.endsWith(ui._list, ':')
? 'enableItem' : 'disableItem'
]('duplicatelist');
that[action]('editlist');
that[action]('deletelist');
*/
}, },
oml_iconinfo: function(data) { oml_iconinfo: function(data) {
// ... // ...
@ -517,6 +507,7 @@ oml.ui.mainMenu = function() {
} }
}, },
oml_listselection: function(data) { oml_listselection: function(data) {
that.replaceMenu('listMenu', getListMenu());
that.replaceMenu('editMenu', getEditMenu()); that.replaceMenu('editMenu', getEditMenu());
}, },
oml_listsort: function(data) { oml_listsort: function(data) {