#2832 closed bug (fixed)
Datepicker v3.4.3 $(element).datepicker('getDate') doesn't work properly
Reported by: | insekticid | Owned by: | grabanski |
---|---|---|---|
Priority: | major | Milestone: | 1.5 |
Component: | ui.datepicker | Version: | 1.5b4 |
Keywords: | datepicker | Cc: | |
Blocked by: | Blocking: |
Description
When I enter any date into datepicker input and then I want to get this date with function $(element).datepicker('getDate') I always get "null".
I studied the code and I found this: date from input is parsed only when I opened datepicker!
So now I am using this ugly hack
$(element).datepicker("show"); $(element).datepicker("hide"); parsed = $(element).datepicker('getDate');
Attachments (2)
Change History (13)
comment:1 Changed 15 years ago by
Priority: | critical → major |
---|
comment:2 Changed 15 years ago by
Owner: | changed from paul to iMarc |
---|
comment:3 Changed 15 years ago by
comment:4 Changed 15 years ago by
new methods: isMaxDate, isMinDate
patch v2.0 is the same like patch v2
now It is possible to validate Datepicker dates with validate plugin
$.validator.methods.dateMin = function (value, element, param) {
return $(element).datepicker('isMinDate');
};
$.validator.methods.dateMax = function (value, element, param) {
return $(element).datepicker('isMaxDate');
};
$.validator.methods.dateRange = function (value, element, param) {
return $(element).datepicker('isDateInRange');
};
comment:6 Changed 15 years ago by
Component: | ui.core → ui.datepicker |
---|---|
Version: | 1.2.3 → 1.5b4 |
comment:7 Changed 15 years ago by
Owner: | changed from iMarc to grabanski |
---|---|
Status: | new → assigned |
comment:8 Changed 15 years ago by
Those three methods you have added are features. I will move them to a feature ticket.
comment:10 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:11 Changed 14 years ago by
Milestone: | → 1.5 |
---|
Hello, here is my hotfix + I added new method for checking, if entered date is in allowed range