Changeset 1443
- Timestamp:
- 2010-02-23 11:25:55 (2 years ago)
- Location:
- trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri
- Files:
-
- 2 edited
-
static-{build}.key/kauri.forms/date.js (modified) (1 diff)
-
templates/snippet/headerlinks.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/date.js
r1442 r1443 344 344 var options = { 345 345 dateFormat: type['user-format'].pattern, 346 // TODO get publicUri('service:/main/static/img/1x1t.gif') here 347 buttonImage: "/kauri/forms/static/img/1x1t.gif", // the image will actually be set with css so just pass a dummy img src 346 buttonImage: this.staticResourceUri + "/img/1x1t.gif", // the image will actually be set with css so just pass a dummy img src 348 347 buttonText: "Choose a date", 349 348 buttonImageOnly: true, 350 349 showOn: "button", 351 350 yearRange: this.yearRange 352 // the buttonText option is removed because is always shown (image is set by css and so the alt is always shown)353 351 }; 354 352 -
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/templates/snippet/headerlinks.xml
r1400 r1443 71 71 })(jQuery); 72 72 ]]></script> 73 74 <!-- configure static resource Uri for date control --> 75 <script type="text/javascript"> 76 (function(\$){ 77 var staticResourceUri = "${publicUri('service:/main/static/')}"; 78 <![CDATA[ 79 var kf = $.org.kauriproject.forms; 80 var controlDef = kf.controlTypes.get("date-control"); 81 controlDef.prototype.staticResourceUri = staticResourceUri; 82 })(jQuery); 83 ]]></script> 84 73 85 </t:if>
Note: See TracChangeset
for help on using the changeset viewer.