jquery-glob icon indicating copy to clipboard operation
jquery-glob copied to clipboard

Ui DatePicker Patchad error

Open rfsantos opened this issue 14 years ago • 0 comments

Hello,

I active plugin in an text input with this:

//Seta valor e ativa DatePicker $('#' + colDefinition.Id).val(theValue) .datepicker({ changeMonth: true, changeYear: true });

and activated the plugin correctly.

When I type something in input i receive the follow message:

Line: 972 Error: Object expected

Debugging the plugin the error is on: /* Extract all possible characters from the date format. */ _possibleChars: function(culture, format) { // expand single digit formats, then escape regular expression characters. format = expandFormat( culture.calendar, format );

Apparently the "expandFormat" function does not exist, because it protected in the globalization plugin namespace

I put the "expandFormat" function out the namespace and I receive another error, saying "culture.calendar is undefined".

So I change the activation to: //Seta valor e ativa DatePicker $('#' + colDefinition.Id).val(theValue) .datepicker({ culture: $.culture, changeMonth: true, changeYear: true });

With this alterations I get no error messages anymore, but I can not type anything in textbox

rfsantos avatar Sep 16 '10 14:09 rfsantos