Author: gregor
Date: Thu Mar 17 08:28:41 2005
New Revision: 157942
URL: http://svn.apache.org/viewcvs?view=rev&rev=157942
Log:
Added context prefix to rename screen. This resolves
http://issues.apache.org/bugzilla/show_bug.cgi?id=34060
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/rename.xsl
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap
URL:
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap?view=diff&r1=157941&r2=157942
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/usecase.xmap Thu Mar 17
08:28:41 2005
@@ -768,7 +768,9 @@
<map:match pattern="showscreen" type="step">
<map:generate src="content/info/rename.xsp" type="serverpages"/>
- <map:transform src="xslt/info/rename.xsl"/>
+ <map:transform src="xslt/info/rename.xsl">
+ <map:parameter name="contextprefix"
value="{request:contextPath}"/>
+ </map:transform>
<map:call resource="style-cms-page"/>
</map:match>
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/rename.xsl
URL:
http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/rename.xsl?view=diff&r1=157941&r2=157942
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/rename.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/rename.xsl Thu Mar
17 08:28:41 2005
@@ -58,12 +58,10 @@
<div class="lenya-box-body">
<script type="text/javascript"
src="{$contextprefix}/lenya/javascript/validation.js"> </script>
<script Language="JavaScript">
-function validateForm(theForm)
-{
- if (!validContent(theForm["properties.node.secdocumentid"],"New
Document ID"))
- return false;
+function validateForm(theForm) {
- return true;
+if (!validContent(theForm["properties.node.secdocumentid"],"New Document ID"))
return false;
+return true;
}
</script>
<form method="get" onsubmit="return validateForm(this)">
|