Module: nagvis Branch: master Commit: ca31d3563f6bef85544eac1090c7e6b95dc7d8ce URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=ca31d3563f6bef85544eac1090c7e6b95dc7d8ce
Author: LaMi <[email protected]> Date: Fri Jan 15 11:09:41 2010 +0100 Fixed complete hiding of new header menu --- share/userfiles/templates/default.header.html | 6 +++--- share/userfiles/templates/default.header.js | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/share/userfiles/templates/default.header.html b/share/userfiles/templates/default.header.html index 6a4c7e1..4ef0612 100644 --- a/share/userfiles/templates/default.header.html +++ b/share/userfiles/templates/default.header.html @@ -53,7 +53,7 @@ </dd> </dl> <dl class="dropdown subdropdown"> - <dd id="map-addicon-ddcontent" onmouseover="cancelHide('map-addicon');cancelHide('map')" onmouseout="ddMenu('map-addicon',-1);ddMenu('map',-1)"> + <dd id="map-addicon-ddcontent" onmouseover="cancelHide('map-addicon');cancelHide('map')" onmouseout="ddMenu('map-addicon',-1,1);ddMenu('map',-1)"> <ul> <li><a class="topline topline" href="javascript:get_click('host',1,'add');ddMenuHide(['map-addicon','map']);">{$langHost}</a></li> <li><a class="topline" href="javascript:get_click('service',1,'add');ddMenuHide(['map-addicon','map']);">{$langService}</a></li> @@ -64,7 +64,7 @@ </dd> </dl> <dl class="dropdown subdropdown"> - <dd id="map-addline-ddcontent" onmouseover="cancelHide('map-addline');cancelHide('map')" onmouseout="ddMenu('map-addline',-1);ddMenu('map',-1)"> + <dd id="map-addline-ddcontent" onmouseover="cancelHide('map-addline');cancelHide('map')" onmouseout="ddMenu('map-addline',-1,1);ddMenu('map',-1)"> <ul> <li><a class="topline topline" href="javascript:get_click('host',2,'add');ddMenuHide(['map-addline','map']);">{$langHost}</a></li> <li><a class="topline" href="javascript:get_click('service',2,'add');ddMenuHide(['map-addline','map']);">{$langService}</a></li> @@ -75,7 +75,7 @@ </dd> </dl> <dl class="dropdown subdropdown"> - <dd id="map-addspecial-ddcontent" onmouseover="cancelHide('map-addspecial');cancelHide('map')" onmouseout="ddMenu('map-addspecial',-1);ddMenu('map',-1)"> + <dd id="map-addspecial-ddcontent" onmouseover="cancelHide('map-addspecial');cancelHide('map')" onmouseout="ddMenu('map-addspecial',-1,1);ddMenu('map',-1)"> <ul> <li><a class="topline topline" href="get_click('shape',1,'add');ddMenuHide(['map-addspecial','map']);">{$langShape}</a></li> <li><a class="topline" href="get_click('textbox',2,'add');ddMenuHide(['map-addspecial','map']);">{$langTextbox}</a></li> diff --git a/share/userfiles/templates/default.header.js b/share/userfiles/templates/default.header.js index d609031..b2771cc 100644 --- a/share/userfiles/templates/default.header.js +++ b/share/userfiles/templates/default.header.js @@ -48,6 +48,7 @@ function ddMenuHide(aIds) { // main function to handle the mouse events // function ddMenu(id, d, reposition){ + document.getElementById('box_textbox_0').appendChild(document.createTextNode('ddMenu('+id+','+d+','+reposition+')\n')); var h = document.getElementById(id + '-ddheader'); var c = document.getElementById(id + '-ddcontent'); @@ -107,4 +108,14 @@ function ddSlide(c,d){ if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ clearInterval(c.timer); } + + // Hide finished + document.getElementById('box_textbox_0').appendChild(document.createTextNode('Currh:'+currh+'\n')); + if(dist == 0 && d != 1) { + document.getElementById('box_textbox_0').appendChild(document.createTextNode('Hide finished\n')); + c.style.opacity = 0; + c.style.filter = 'alpha(opacity=0)'; + c.style.height = '0px'; + clearInterval(c.timer); + } } ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
