diff --git a/source/Ox.UI/js/Menu/Ox.MainMenu.js b/source/Ox.UI/js/Menu/Ox.MainMenu.js index dd99a13f..6fce7bb7 100644 --- a/source/Ox.UI/js/Menu/Ox.MainMenu.js +++ b/source/Ox.UI/js/Menu/Ox.MainMenu.js @@ -140,8 +140,15 @@ Ox.MainMenu = function(options, self) { checkItem checkItem @*/ that.checkItem = function(id) { - var item = that.getItem(id); - item && item.options({checked: true}); + var ids = id.split('_'), + item = that.getItem(id); + if (item) { + if (item.options('group')) { + item.options('menu').checkItem(ids[ids.length - 1]); + } else { + item.options({checked: true}); + } + } return that; };