jquery-glob
jquery-glob copied to clipboard
Ui DatePicker Patchad error
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