BUGFIX Fixed CalendarDateField.js concrete definition

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92552 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:32:32 +00:00
parent 22bf4f8c33
commit 0231e8b8ea

View File

@ -6,15 +6,17 @@
* *
* @author Ingo Schommer, SilverStripe Ltd. * @author Ingo Schommer, SilverStripe Ltd.
*/ */
$('.calendardate').concrete('ss', { $('.calendardate').concrete('ss', function($){
onmatch: function() { return {
this.find('input').each(function() { onmatch: function() {
var conf = $(this).metadata(); this.find('input').each(function() {
if(conf.minDate) conf.minDate = new Date(Date.parse(conf.minDate)); var conf = $(this).metadata();
if(conf.minDate) conf.minDate = new Date(Date.parse(conf.minDate));
// //
$(this).datepicker(conf); $(this).datepicker(conf);
}); });
} }
}) };
});
}(jQuery)); }(jQuery));