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:26:52 UTC (rev 20990) +++ trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js 2012-01-25 11:40:53 UTC (rev 20991) @@ -238,6 +238,8 @@ this._setState('edit'); this._stopTimer(true); } + + this._dateInputs.date_diff.val(1); }, _setState: function(state) { @@ -292,8 +294,6 @@ 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())); }