Closed ashimakochar closed 7 years ago
Below is the code added and its causing the stack trace exceeded at second line i.e. $.datepicker._updateDatepicker = function(inst) :-
$.datepicker._updateDatepicker_original = $.datepicker._updateDatepicker; $.datepicker._updateDatepicker = function(inst) { $.datepicker._updateDatepicker_original(inst); var afterShow = this._get(inst, 'afterShow'); if (afterShow) { afterShow.apply((inst.input ? inst.input[0] : null)); } }
Do not add the code to document.ready as this creates the above exception
$.datepicker._updateDatepicker_original = $.datepicker._updateDatepicker; $.datepicker._updateDatepicker = function(inst) { $.datepicker._updateDatepicker_original(inst); var afterShow = this._get(inst, 'afterShow'); if (afterShow) { afterShow.apply((inst.input ? inst.input[0] : null));
} }