mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Making DateField.js $.metadata() calls resilient against $.metadata.defaults changes
This commit is contained in:
parent
be68450ce1
commit
b234b3032d
@ -1,6 +1,6 @@
|
|||||||
(function($) {
|
(function($) {
|
||||||
$('.field.date input.text').live('click', function() {
|
$('.field.date input.text').live('click', function() {
|
||||||
var holder = $(this).parents('.field.date:first'), config = holder.metadata();
|
var holder = $(this).parents('.field.date:first'), config = holder.metadata({type: 'class'});
|
||||||
if(!config.showcalendar) return;
|
if(!config.showcalendar) return;
|
||||||
|
|
||||||
if(config.locale && $.datepicker.regional[config.locale]) {
|
if(config.locale && $.datepicker.regional[config.locale]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user