mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
22bf4f8c33
commit
0231e8b8ea
@ -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));
|
Loading…
Reference in New Issue
Block a user