From 0231e8b8eaf7b7c36251b1ce727824c7cbb1ce7e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:32:32 +0000 Subject: [PATCH] BUGFIX Fixed CalendarDateField.js concrete definition git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92552 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/CalendarDateField.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/javascript/CalendarDateField.js b/javascript/CalendarDateField.js index 96339f33e..1014ab3d9 100755 --- a/javascript/CalendarDateField.js +++ b/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)); \ No newline at end of file