can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r12164: LJSUP-12666: Calendar works incorrect.

Committer: dpetrov
LJSUP-12666: Calendar works incorrect.
U   trunk/htdocs/js/jquery/jquery.lj.inlineCalendar.js
Modified: trunk/htdocs/js/jquery/jquery.lj.inlineCalendar.js
===================================================================
--- trunk/htdocs/js/jquery/jquery.lj.inlineCalendar.js	2012-06-22 15:46:29 UTC (rev 12163)
+++ trunk/htdocs/js/jquery/jquery.lj.inlineCalendar.js	2012-06-25 06:27:06 UTC (rev 12164)
@@ -535,8 +535,7 @@
 					break;
 				case 'displayedMonth':
 					var newDate = this._fitDate( new Date( value ) ),
-						isCurrentMonth = ( getDateNumber( newDate, true )
-								=== getDateNumber( this.options.displayedMonth ) );
+						isCurrentMonth = getDateNumber(newDate, true) === getDateNumber(this.options.displayedMonth, true);
 
 					if( !isCurrentMonth ) {
 						this.options.displayedMonth = this._fitDate( new Date( value ) );

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