Ticket #5151: jquery.ui.datepicker.patch.txt

File jquery.ui.datepicker.patch.txt, 921 bytes (added by maxbarbul, 9 years ago)

Workaround of this issue. Added new option {Date} "todayDate". You need to set it whatever you want.

Line 
1diff -r1.1 jquery.ui.datepicker.js
2825c825
3<                       var date = new Date();
4---
5>                       var date = this._get(inst, 'todayDate') || new Date();
61257c1257
7<                       this._determineDate(inst, this._get(inst, 'defaultDate'), new Date()));
8---
9>                       this._determineDate(inst, this._get(inst, 'defaultDate'), this._get(inst, 'todayDate') || new Date()));
101263c1263
11<                       var date = new Date();
12---
13>                       var date = this._get(inst, 'todayDate') || new Date();
141276c1276
15<                               $.datepicker._getDate(inst) : null) || new Date();
16---
17>                               $.datepicker._getDate(inst) : null) || $.datepicker._get(inst, 'todayDate') || new Date();
181330c1330
19<               date = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));
20---
21>               date = this._restrictMinMax(inst, this._determineDate(inst, date, this._get(inst, 'todayDate') || new Date()));
221352c1352
23<               var today = new Date();
24---
25>               var today = this._get(inst, 'todayDate') || new Date();