Committer: vkurkin
LJSUP-11049: custom_time is not set if time changed (update.bml & editjournal.bml)U trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js
Modified: trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js =================================================================== --- trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js 2012-01-25 11:40:53 UTC (rev 20991) +++ trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js 2012-01-25 11:56:52 UTC (rev 20992) @@ -238,8 +238,6 @@ this._setState('edit'); this._stopTimer(true); } - - this._dateInputs.date_diff.val(1); }, _setState: function(state) { @@ -255,6 +253,7 @@ this._stopTimer(true); } else { this._startTimer(); + this._dateInputs.custom_time.val(1); } break; case 'infutureedit': @@ -294,6 +293,8 @@ this._calendar.calendar('option', 'currentDate', date); } + inputs.date_diff.val(1); + if(this.options.state == 'default') { this._dateString.text(this.options.monthNames[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear() + ', ' + twodigit(date.getHours()) + ':' + twodigit(date.getMinutes())); }