]> matita.cs.unibo.it Git - helm.git/commitdiff
Clicking on the AREA and not on the menu just pop-ups the menu again instead
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 25 Oct 2001 13:14:47 +0000 (13:14 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 25 Oct 2001 13:14:47 +0000 (13:14 +0000)
of crashing.

helm/on-line/xslt/makeGraphLinks.xsl

index 10a5485192817ae65be2e6ac7e5cb413a8126df3..f015511b6d35f60f9c69b7f19f469445acbb2246 100644 (file)
@@ -58,6 +58,7 @@ function HM_f_PopDown(){return false};
 popUp = HM_f_PopUp;
 popDown = HM_f_PopDown;
 var selectedURI;
+var lastEvent;
 ]]>
    </script>
    <script language="JavaScript1.2" type="text/javascript">
@@ -146,8 +147,9 @@ HM_Array1 = [
      CSC: Replaced with the following line
    <xsl:attribute name="onMouseOver">selectedURI=this.href;HM_f_PopUp('elMenu1',event)</xsl:attribute>
 -->
-   <xsl:attribute name="onMouseOver">selectedURI="<xsl:value-of select="$uri"/>";HM_f_PopUp('elMenu1',event)</xsl:attribute>
+   <xsl:attribute name="onMouseOver">selectedURI="<xsl:value-of select="$uri"/>";lastEvent=event;HM_f_PopUp('elMenu1',event)</xsl:attribute>
    <xsl:attribute name="onMouseOut">HM_f_PopDown('elMenu1')</xsl:attribute>
+   <xsl:attribute name="href">javascript: HM_f_PopUp('elMenu1',lastEvent); void(0);</xsl:attribute>
   </xsl:if>
   <xsl:apply-templates/>
  </xsl:copy>