1
0
Fork 0
forked from 0x2620/oxjs

Ox.Clipboard: add events; Ox.Request: cleanup; Ox.MainMenu: use OxHighlight class; Themes: add bar highlight color and gradient

This commit is contained in:
rlx 2013-07-15 09:10:08 +00:00
commit 27bbbdbd83
8 changed files with 35 additions and 8 deletions

View file

@ -204,11 +204,11 @@ Ox.MainMenu = function(options, self) {
that.highlightMenu = function(id) {
var position = Ox.getIndexById(self.options.menus, id);
self.highlightTimeout && clearTimeout(self.highlightTimeout);
that.titles[position].addClass('OxSelected');
that.titles[position].addClass('OxHighlight');
self.highlightTimeout = setTimeout(function() {
that.titles[position].removeClass('OxSelected');
that.titles[position].removeClass('OxHighlight');
delete self.highlightTimeout;
}, 250);
}, 500);
};
that.removeMenu = function() {