update main menu highlighting
This commit is contained in:
parent
d9dfa9f0c6
commit
b1b2785a15
1 changed files with 3 additions and 1 deletions
|
@ -203,9 +203,11 @@ Ox.MainMenu = function(options, self) {
|
||||||
|
|
||||||
that.highlightMenu = function(id) {
|
that.highlightMenu = function(id) {
|
||||||
var position = Ox.getIndexById(self.options.menus, id);
|
var position = Ox.getIndexById(self.options.menus, id);
|
||||||
|
self.highlightTimeout && clearTimeout(self.highlightTimeout);
|
||||||
that.titles[position].addClass('OxSelected');
|
that.titles[position].addClass('OxSelected');
|
||||||
setTimeout(function() {
|
self.highlightTimeout = setTimeout(function() {
|
||||||
that.titles[position].removeClass('OxSelected');
|
that.titles[position].removeClass('OxSelected');
|
||||||
|
delete self.highlightTimeout;
|
||||||
}, 250);
|
}, 250);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue