BUGFIX Making DateField.js $.metadata() calls resilient against $.metadata.defaults changes

This commit is contained in:
Ingo Schommer 2011-04-22 23:28:26 +12:00
parent be68450ce1
commit b234b3032d

View File

@ -1,6 +1,6 @@
(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.locale && $.datepicker.regional[config.locale]) {