Author: bwallace
Date: Sat Apr 22 00:33:17 2006
New Revision: 396093

URL: http://svn.apache.org/viewcvs?rev=396093&view=rev
Log:
[TAPESTRY-301] Added check in DatePicker against enabled status of field prior 
to displaying.

Modified:
    
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/form/DatePicker.script

Modified: 
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/form/DatePicker.script
URL: 
http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/form/DatePicker.script?rev=396093&r1=396092&r2=396093&view=diff
==============================================================================
--- 
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/form/DatePicker.script
 (original)
+++ 
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/form/DatePicker.script
 Sat Apr 22 00:33:17 2006
@@ -2,7 +2,7 @@
 <!-- $Id$ -->
 <!DOCTYPE script PUBLIC
        "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
-       "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>
+       "http://tapestry.apache.org/dtd/Script_3_0.dtd";>
   
 <script>
 
@@ -25,7 +25,7 @@
 </let>
 
 <let key="buttonOnclickHandler">
-  javascript:${calendarObject}.toggle(document.${formName}.${name});   
+  javascript:if(!document.${formName}.${name}.disabled) { 
${calendarObject}.toggle(document.${formName}.${name});} 
 </let>
 
 <body>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to