can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r10854: LJSUP-9492: Bad HTML at Calendar in Mini...

Committer: dpetrov
LJSUP-9492: Bad HTML at Calendar in Minimalism
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	2011-08-11 10:13:15 UTC (rev 10853)
+++ trunk/htdocs/js/jquery/jquery.lj.inlineCalendar.js	2011-08-12 01:29:10 UTC (rev 10854)
@@ -217,10 +217,11 @@
 			}
 
 			d.setDate( d.getDate() - 1 ); //get the date from the last cell
+			//we do not use show and hide methods, because show method sets display: block;
 			if( d.getDate() < 7 ) {
-				nodes.lastRow.show();
+				nodes.lastRow.css('display', '');
 			} else {
-				nodes.lastRow.hide();
+				nodes.lastRow.css('display', 'none');
 			}
 		};
 

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