Changeset - 1dcc2f84c9eb
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2011-03-22 18:53:28
ohnobinki@ohnopublishing.net
Ensure that the registration codes shown actually correspond to the current tab.

Previously, the registration codes for the following tab instead of the current tab were being displayed.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -564,7 +564,7 @@ class Schedule
 
	    ksort($permutation_courses);
 
	    // End of table
 
	    echo "        </table>\n"
 
              . '         <span class="course-data course-data-'.$i.'">'.  htmlentities(json_encode($permutation_courses)) . "</span>\n"
 
              . '         <span class="course-data">'.  htmlentities(json_encode($permutation_courses)) . "</span>\n"
 
	      . '      </div> <!-- id="section' . ($i + 1) . "\" -->\n";
 
	  }
 

	
scripts/displayTables.js
Show inline comments
 
@@ -112,7 +112,7 @@ jQuery(document).ready( function()
 
	/* hmm... why isn't this information just stored in a global JS variable? */
 
	var tab_i = jQuery('#tabs').tabs('option','selected');
 
	var tab_fragment_i = /-([^-]+)$/.exec(jQuery('#the-tabs li:eq(' + tab_i + ') a').attr('href'))[1];
 
        var tab_course_data_json_selector = '.course-data-' + tab_fragment_i;
 
        var tab_course_data_json_selector = '#tabs-' + tab_fragment_i + ' .course-data';
 
	
 
        var tab_course_data_json = jQuery(tab_course_data_json_selector).text();
 
        var tab_course_data = eval('(' + tab_course_data_json + ')');
0 comments (0 inline, 0 general)