main menu: add public highlight method

This commit is contained in:
rlx 2013-07-13 21:04:17 +00:00
parent 18d100f978
commit 1f29646b28

View file

@ -201,6 +201,14 @@ Ox.MainMenu = function(options, self) {
return menu; return menu;
}; };
that.highlightMenu = function(id) {
var position = Ox.getIndexById(self.options.menus, id);
that.titles[position].addClass('OxSelected');
setTimeout(function() {
that.titles[position].removeClass('OxSelected');
}, 250);
};
that.removeMenu = function() { that.removeMenu = function() {
}; };