From a563de5fc2f42abf16fbcfda7cf5bc5f1ce794e7 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 2 Jul 2013 11:53:40 -0700 Subject: selfservice, TNG, RT#22193 --- ng_selfservice/js/menu.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ng_selfservice/js/menu.js (limited to 'ng_selfservice/js/menu.js') diff --git a/ng_selfservice/js/menu.js b/ng_selfservice/js/menu.js new file mode 100644 index 0000000..30e4816 --- /dev/null +++ b/ng_selfservice/js/menu.js @@ -0,0 +1,17 @@ +$(document).ready(function() { + $('#menu_ul > li').hover(function(){ + $('a:first', this).addClass('hover'); + $('ul:first', this).show(); + if ($('.current_menu:first', this).length == 0) { + $('img[src*="dropdown_arrow_white"]', this).show(); + $('img[src*="dropdown_arrow_grey"]', this).hide(); + } + }, function(){ + $('ul:first', this).hide(); + $('a:first', this).removeClass('hover'); + if ($('.current_menu:first', this).length == 0) { + $('img[src*="dropdown_arrow_white"]', this).hide(); + $('img[src*="dropdown_arrow_grey"]', this).show(); + } + }); +}); -- cgit v1.1