fix calendar popup for weirdly named fields in RT, for the quotes around custom field...
[freeside.git] / rt / share / html / Elements / SelectDate
index 183086f..46092ce 100755 (executable)
 <IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $Name %>_date_button" STYLE="cursor: pointer" TITLE="Select date">
 <script type="text/javascript">
 Calendar.setup({
-    inputField: "<%$Name%>",
+    inputField: <% $Name |n,js_string %>,
 % if ( defined($ShowTime) && $ShowTime ) {
     ifFormat:   "%Y-%m-%d %H:%M",
     showsTime:  true,
 % } else {
     ifFormat:   "%Y-%m-%d",
 % }
-    button:     "<%$Name%>_date_button",
+    button:     <% $Name.'_date_button' |n,js_string %>,
 });
 </script>
 <%init>