Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r20991: LJSUP-11049: custom_time is not set if t...

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()));
 				}

Tags: b_vladi, js, livejournal, vkurkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments