[Rt-commit] r5938 - in rt/branches/3.6-RELEASE: .
jesse at bestpractical.com
jesse at bestpractical.com
Fri Sep 15 09:50:44 EDT 2006
Author: jesse
Date: Fri Sep 15 09:50:43 2006
New Revision: 5938
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/Elements/EditCustomFieldFreeform
Log:
r27502 at pinglin: jesse | 2006-09-15 14:50:38 +0100
Give Freeform form elements an id. This will be useful
in combination with the EditComponentName callback.
With a few local mods, date CFs will be able to use the
date picker. Without an id the date picker doesn't work.
-Todd Chapman
Modified: rt/branches/3.6-RELEASE/html/Elements/EditCustomFieldFreeform
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/EditCustomFieldFreeform (original)
+++ rt/branches/3.6-RELEASE/html/Elements/EditCustomFieldFreeform Fri Sep 15 09:50:43 2006
@@ -43,10 +43,11 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
+% my $name = $NamePrefix . $CustomField->Id . '-Value';
% if ($Multiple) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$NamePrefix%><%$CustomField->Id%>-Values"><%$Default%></textarea>
+<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$name%>s" id="<%$name%>s" ><%$Default%></textarea>
% } else {
-<input name="<%$NamePrefix%><%$CustomField->Id%>-Value" size="<%$Cols%>" value="<%$Default ? $Default : ''%>" />
+<input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" value="<%$Default ? $Default : ''%>" />
% }
<%INIT>
if ($Multiple and $Values) {
More information about the Rt-commit
mailing list