can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r22077: LJSUP-11158: Update.bml (Lebedev's redes...

Committer: dpetrov
LJSUP-11158: Update.bml (Lebedev's redesign). Set timezone from entryDatePicker widget.
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-05-28 11:28:42 UTC (rev 22076)
+++ trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js	2012-05-28 11:44:01 UTC (rev 22077)
@@ -107,6 +107,7 @@
 				dateInputs: 'input, select',
 				calendar: '.wrap-calendar .i-calendar',
 				editLink: '#currentdate-edit',
+				timezone: 'input[name=timezone]',
 				monthSelect: '#_mm',
 				dateString: '.entrydate-string'
 			}
@@ -138,6 +139,10 @@
 
 			this._initialUpdateDate = this.options.updateDate;
 
+			if (!this._isOldDesign) {
+				this._el('timezone').val(- (new Date()).getTimezoneOffset()/0.6);
+			}
+
 			if (this._initialUpdateDate) {
 				this.currentDate = new Date();
 				this._startTimer();

Tags: can3p, dpetrov, js, livejournal
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