]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/xslt/ls2html.xsl
Many modifications to avoid JavaScript security rules of
[helm.git] / helm / on-line / xslt / ls2html.xsl
index 606d750f827ba4fdd83ce6816c9e70fae8657f1f..105c9ed3f06ad47856b7a5765539015117c33e28 100644 (file)
@@ -43,6 +43,7 @@
    <img border="0" src="{concat($interfaceURL,'/icons/',$icon)}" alt="[{$alt}]"/>
   </td>
   <td>
+<!-- Substituted with next lines to avoid Mozilla 0.8 bug setting this.search
     <a
       onClick=
        "top.{$target}uri='{$uri}';
       onMouseOver="window.status='{$uri}'; return true"
       href="apply"
    ><xsl:value-of select="$basename"/></a>
+-->
+    <a
+      onClick=
+       "top.{$target}uri='{$uri}';
+        refresh{$target}Header('{$interfaceURL}/html/library/header.html');
+        var search='?keys={$keys}' +
+         '&amp;xmluri=' + escape('{$getterURL}ls?format=xml'+'&amp;baseuri={$uri}')+
+         '&amp;param.uri={$uri}' +
+         '&amp;param.keys={$keys}' +
+         '&amp;param.getterURL={$getterURL}' +
+         '&amp;param.target={$target}' +
+         '&amp;param.interfaceURL={$interfaceURL}';
+        this.href=
+         this.protocol + '//' + this.host + this.pathname + search + this.hash;"
+      onMouseOver="window.status='{$uri}'; return true"
+      href="apply"
+   ><xsl:value-of select="$basename"/></a>
   </td>
  </tr>
 </xsl:template>