Page 1 of 1

More than one div with the same id - fixed

PostPosted: Fri Jul 01, 2011 2:46 pm
by kuczora
Just a small bug, which I admit doesn't seem to affect the behaviour of AAC :D

Sometimes the id of a calendar div and the id of the cal_title div that it contains can be the same - which is technically not allowed.

You use the div ids as a means of data storage, so to make sure nothing breaks you can add something like "_cal" to the name of the div in this line from cal.inc.php:
Code: Select all
$calendar_months.='<div id="'.$this_month.'_'.$this_year.'_cal" class="cal_month load_cal"></div>';

As I said, it doesn't seem to cause any actual errors, but it isn't valid HTML