]> matita.cs.unibo.it Git - helm.git/commitdiff
"Bug" appearing under IE only fixed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 25 Jun 2001 09:52:36 +0000 (09:52 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 25 Jun 2001 09:52:36 +0000 (09:52 +0000)
helm/on-line/xslt/ls2html.xsl

index 105c9ed3f06ad47856b7a5765539015117c33e28..98f8fd17a02c51750bda1df4ee8870ce2c67ad86 100644 (file)
          '&amp;param.getterURL={$getterURL}' +
          '&amp;param.target={$target}' +
          '&amp;param.interfaceURL={$interfaceURL}';
+        var pathname = this.pathname;
+        // Next if to cope with IE idiosyncrasies
+        if (pathname.charAt(0) != '/')
+         pathname = '/' + pathname;
         this.href=
-         this.protocol + '//' + this.host + this.pathname + search + this.hash;"
+         this.protocol + '//' + this.host + pathname + search + this.hash;"
       onMouseOver="window.status='{$uri}'; return true"
       href="apply"
    ><xsl:value-of select="$basename"/></a>