cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r593620 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/DropdownDateTimePicker.js
Date Fri, 09 Nov 2007 18:42:24 GMT
Author: antonio
Date: Fri Nov  9 10:42:23 2007
New Revision: 593620

URL: http://svn.apache.org/viewvc?rev=593620&view=rev
Log:
trim @onchange. Some transformation left there white spaces.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/DropdownDateTimePicker.js

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/DropdownDateTimePicker.js
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/DropdownDateTimePicker.js?rev=593620&r1=593619&r2=593620&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/DropdownDateTimePicker.js
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/DropdownDateTimePicker.js
Fri Nov  9 10:42:23 2007
@@ -72,7 +72,8 @@
             this._initDateFormatOptions();
 
             this.templateString = "<span style='white-space: nowrap'><input dojoAttachPoint='inputNode'
autocomplete='off' style='vertical-align: middle'";
-            if (this.onchange != "") {
+            if (!dojo.string.isBlank(this.onchange)) {
+            	this.onchange = dojo.string.trim(this.onchange);
             	this.templateString += " onchange=" + dojo.string.escapeString(this.onchange);
             }
             this.templateString +="/>";



Mime
View raw message