Permalink
Browse files

BUGFIX Making DateField.js $.metadata() calls resilient against $.met…

…adata.defaults changes
  • Loading branch information...
1 parent be68450 commit b234b3032d51a8b44fa1b523cb9655e526cc65e7 @chillu chillu committed Apr 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/DateField.js
View
2 javascript/DateField.js
@@ -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]) {

0 comments on commit b234b30

Please sign in to comment.