# HG changeset patch # User Nathan Phillip Brink # Date 2011-03-22 16:31:05 # Node ID 19228cef8a8b963ba51bec93c29b36b9aac7014f # Parent 9fd95ed08e56196482516a86a8ca82b311436693 Display an informative not on the Registration Codes dialogue to indicate that it is relevant to the currently selected tab. diff --git a/inc/class.schedule.php b/inc/class.schedule.php --- a/inc/class.schedule.php +++ b/inc/class.schedule.php @@ -405,7 +405,10 @@ class Schedule if ($sort_time) sort($time); - echo '
'; + echo '
' . PHP_EOL + . '
' . PHP_EOL + . '

Note: The registration information above corresponds to the sections displayed on the currently selected tab.

' + . '
'; echo '
' . "\n" . '

diff --git a/scripts/displayTables.js b/scripts/displayTables.js --- a/scripts/displayTables.js +++ b/scripts/displayTables.js @@ -107,7 +107,7 @@ jQuery(document).ready( function() jQuery("#regDialog").dialog({ modal: true, width: 550, resizable: false, draggable: false, autoOpen: false }); jQuery('#regCodes').click( function() { - jQuery('#regDialog').html('

Loading registration information...

'); + jQuery('#regDialog-content').html('

Loading registration information...

'); /* hmm... why isn't this information just stored in a global JS variable? */ var tab_i = jQuery('#tabs').tabs('option','selected'); @@ -117,7 +117,7 @@ jQuery(document).ready( function() var tab_course_data_json = jQuery(tab_course_data_json_selector).text(); var tab_course_data = eval('(' + tab_course_data_json + ')'); - slate_permutate_load(jQuery('#regDialog'), {school_registration_html: true, courses: tab_course_data}); + slate_permutate_load(jQuery('#regDialog-content'), {school_registration_html: true, courses: tab_course_data}); jQuery("#regDialog").dialog('open');