X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=ng_selfservice%2Fjs%2Fmenu.js;fp=ng_selfservice%2Fjs%2Fmenu.js;h=30e481621d8d5abc8959ec8747e834884b6231ef;hb=2f7688b1b21d92b406d60d09cdd8edcd7a99e842;hp=0000000000000000000000000000000000000000;hpb=7d26901e658bd61078f10c0713676f94375f3283;p=freeside.git diff --git a/ng_selfservice/js/menu.js b/ng_selfservice/js/menu.js new file mode 100644 index 000000000..30e481621 --- /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(); + } + }); +});