Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22462: LJSUP-12969: Incorrect changing date whe...

Committer: anazarov
LJSUP-12969: Incorrect changing date when editing post
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-07-17 11:33:32 UTC (rev 22461)
+++ trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js	2012-07-17 11:57:15 UTC (rev 22462)
@@ -137,7 +137,7 @@
 
 			this._initialUpdateDate = this.options.updateDate;
 
-			if (!this._isOldDesign) {
+			if (!this._isOldDesign && !LJ.pageVar('is_edit')) {
 				this._el('timezone').val(- (new Date()).getTimezoneOffset()/0.6);
 			}
 

Tags: anazarov, js, livejournal, nfokz
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