Permalink
Browse files

BUGFIX Fixed CalendarDateField.js concrete definition

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92552 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 22bf4f8 commit 0231e8b8eaf7b7c36251b1ce727824c7cbb1ce7e @chillu chillu committed Nov 21, 2009
Showing with 12 additions and 10 deletions.
  1. +12 −10 javascript/CalendarDateField.js
@@ -6,15 +6,17 @@
*
* @author Ingo Schommer, SilverStripe Ltd.
*/
- $('.calendardate').concrete('ss', {
- onmatch: function() {
- this.find('input').each(function() {
- var conf = $(this).metadata();
- if(conf.minDate) conf.minDate = new Date(Date.parse(conf.minDate));
+ $('.calendardate').concrete('ss', function($){
+ return {
+ onmatch: function() {
+ this.find('input').each(function() {
+ var conf = $(this).metadata();
+ if(conf.minDate) conf.minDate = new Date(Date.parse(conf.minDate));
- //
- $(this).datepicker(conf);
- });
- }
- })
+ //
+ $(this).datepicker(conf);
+ });
+ }
+ };
+ });
}(jQuery));

0 comments on commit 0231e8b

Please sign in to comment.