Changeset - 19228cef8a8b
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2011-03-22 16:31:05
ohnobinki@ohnopublishing.net
Display an informative not on the Registration Codes dialogue to indicate that it is relevant to the currently selected tab.
2 files changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -405,7 +405,10 @@ class Schedule
 
	if ($sort_time)
 
	  sort($time);
 

	
 
        echo '<div id="regDialog" title="Registration Codes"></div>';
 
        echo '    <div id="regDialog" title="Registration Codes">' . PHP_EOL
 
	  . '      <div id="regDialog-content"></div>' . PHP_EOL
 
	  . '      <p id="regDialog-disclaimer" class="graytext"><em>Note: The registration information above corresponds to the sections displayed on the currently selected tab.</em></p>'
 
	  . '    </div>';
 
	echo '<div id="tabs">' . "\n" .
 
               '<div id="show-box" class="show-buttons">
 
                  <form action="#"><p class="nospace">
scripts/displayTables.js
Show inline comments
 
@@ -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('<p>Loading registration information...</p>');
 
        jQuery('#regDialog-content').html('<p>Loading registration information...</p>');
 

	
 
	/* 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');
 

	
0 comments (0 inline, 0 general)