Opened 15 years ago
Closed 14 years ago
#1628 closed defect (worksforme)
click-dragging across the DatePicker causes error.
Reported by: | guest | Owned by: | tk |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | General | Version: | 0.3 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
dojo version 0.31 IE 6.0 & FF 1.5.0.7
If you button down on one date, then drag across to another date and button up, it causes an error.
here is how I patched it. in widget/html/DatePicker.js - onSetDate
I changed this.date = new Date(year, month, evt.target.innerHTML); this.setDate(dojo.widget.DatePicker?.util.toRfcDate(this.date)); this.initUI();
to
var buf = evt.target.innerHTML; if(isNaN(buf)) {} else {
this.date = new Date(year, month, buf); this.setDate(dojo.widget.DatePicker?.util.toRfcDate(this.date)); this.initUI();
}
Stephen Zabel [email protected]…
Change History (2)
comment:1 Changed 15 years ago by
Milestone: | → 0.6 |
---|---|
Owner: | changed from anonymous to tk |
comment:2 Changed 14 years ago by
Cc: | [email protected]… added |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Seems to have gotten fixed in the 0.4 rewrite