From 09c2f33633fd5f4d992858d06addee8c1cbfdda4 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Wed, 8 Jun 2011 19:57:35 +0000 Subject: [PATCH] NIHVIVO-2588. Forgot to commit js file to handle pull down menu for user menu --- webapp/web/js/userMenu/userMenuUtils.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 webapp/web/js/userMenu/userMenuUtils.js diff --git a/webapp/web/js/userMenu/userMenuUtils.js b/webapp/web/js/userMenu/userMenuUtils.js new file mode 100644 index 000000000..eab8ee714 --- /dev/null +++ b/webapp/web/js/userMenu/userMenuUtils.js @@ -0,0 +1,19 @@ +/* $This file is distributed under the terms of the license in /doc/license.txt$ */ + +$(function(){ + + $("ul.dropdown li").hover(function(){ + + $(this).addClass("hover"); + $('ul:first',this).css('visibility', 'visible'); + + }, function(){ + + $(this).removeClass("hover"); + $('ul:first',this).css('visibility', 'hidden'); + + }); + + $("ul.dropdown li ul li:has(ul)").find("a:first").append(" » "); + +}); \ No newline at end of file