You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2003/07/01 19:57:23 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/xslt/info cut.xsl paste.xsl copy.xsl
edith 2003/07/01 10:57:23
Modified: src/webapp/lenya/xslt/info cut.xsl paste.xsl copy.xsl
Log:
Get parameters from GUI through cookies and session
Revision Changes Path
1.7 +4 -3 cocoon-lenya/src/webapp/lenya/xslt/info/cut.xsl
Index: cut.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/cut.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- cut.xsl 25 Jun 2003 17:14:54 -0000 1.6
+++ cut.xsl 1 Jul 2003 17:57:23 -0000 1.7
@@ -13,6 +13,7 @@
<xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:variable name="request-uri"><xsl:value-of select="/info/request-uri"/></xsl:variable>
<xsl:variable name="document-id"><xsl:value-of select="/info/document-id"/></xsl:variable>
<xsl:variable name="action"><xsl:value-of select="/info/action"/></xsl:variable>
@@ -34,7 +35,7 @@
<div class="lenya-box">
<div class="lenya-box-title">Cut Document</div>
<div class="lenya-box-body">
- <form method="post">
+ <form method="get">
<xsl:attribute name="action"></xsl:attribute>
<p>
<input type="hidden" name="documentid" value="{$document-id}"/>
@@ -45,7 +46,7 @@
clipboard, ready to be pasted at the location of your choosing.
</p>
<input type="submit" class="lenya-form-element" value="Cut"/>
-    <input type="button" onClick="location.href='{referer}';" value="Cancel"/>
+    <input type="button" onClick="location.href='{$request-uri}';" value="Cancel"/>
</form>
</div>
</div>
1.7 +3 -2 cocoon-lenya/src/webapp/lenya/xslt/info/paste.xsl
Index: paste.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/paste.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- paste.xsl 25 Jun 2003 17:14:54 -0000 1.6
+++ paste.xsl 1 Jul 2003 17:57:23 -0000 1.7
@@ -13,6 +13,7 @@
<xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:variable name="request-uri"><xsl:value-of select="/info/request-uri"/></xsl:variable>
<xsl:variable name="first-document-id"><xsl:value-of select="/info/first-document-id"/></xsl:variable>
<xsl:variable name="sec-document-id"><xsl:value-of select="/info/sec-document-id"/></xsl:variable>
<xsl:variable name="task-id"><xsl:value-of select="/info/task-id"/></xsl:variable>
@@ -47,7 +48,7 @@
Do you really want to paste <xsl:value-of select="first-document-id"/> from the clipboard?
</p>
<input type="submit" class="lenya-form-element" value="Paste"/>
-    <input type="button" onClick="location.href='{referer}';" value="Cancel"/>
+    <input type="button" onClick="location.href='{$request-uri}';" value="Cancel"/>
</form>
</div>
</div>
1.7 +4 -3 cocoon-lenya/src/webapp/lenya/xslt/info/copy.xsl
Index: copy.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/info/copy.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- copy.xsl 25 Jun 2003 17:14:54 -0000 1.6
+++ copy.xsl 1 Jul 2003 17:57:23 -0000 1.7
@@ -15,6 +15,7 @@
<xsl:variable name="document-id"><xsl:value-of select="/info/document-id"/></xsl:variable>
<xsl:variable name="action"><xsl:value-of select="/info/action"/></xsl:variable>
+ <xsl:variable name="request-uri"><xsl:value-of select="/info/request-uri"/></xsl:variable>
<xsl:template match="/">
<xsl:apply-templates/>
@@ -34,7 +35,7 @@
<div class="lenya-box">
<div class="lenya-box-title">Copy Document</div>
<div class="lenya-box-body">
- <form method="post">
+ <form method="get">
<xsl:attribute name="action"></xsl:attribute>
<p>
<input type="hidden" name="documentid" value="{$document-id}"/>
@@ -45,7 +46,7 @@
It will be placed on the clipboard, ready to be pasted at the location of your choosing.
</p>
<input type="submit" class="lenya-form-element" value="Copy"/>
-    <input type="button" onClick="location.href='{referer}';" value="Cancel"/>
+    <input type="button" onClick="location.href='{$request-uri}';" value="Cancel"/>
</form>
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org