Changeset - 75db02d1fb72
[Not reviewed]
default
0 2 0
nathang - 14 years ago 2012-02-16 20:18:59
ngelderloos7@gmail.com
Updated 'hysterical' to 'historical'.
2 files changed with 11 insertions and 12 deletions:
0 comments (0 inline, 0 general)
inc/class.page.php
Show inline comments
 
@@ -532,16 +532,15 @@ class page
 
     * a safe string.
 
     */
 
    $linkto = htmlentities($linkto . 'semester=');
 

	
 
    $time = time();
 
    /**
 
     * Hysterical... or historical? Uncle John Brink prefers
 
     * ``hysterical''...
 
     * Show the historical data. This doesn't seem useful, but it's here.
 
     */
 
    $hysterical = FALSE;
 
    $historical = FALSE;
 

	
 
    echo "    <p>\n";
 
    echo "      <ul>\n";
 
    foreach (school_semesters($this->school) as $semester)
 
      {
 
	$text_extra = array();
 
@@ -550,27 +549,27 @@ class page
 
	  {
 
	    $class_extra = ' highlight';
 
	    $text_extra[] = 'selected';
 
	  }
 
	if ($semester['time_start'] > 36000 && $semester['time_start'] < ($time - 365*24*60*60))
 
	  {
 
	    $class_extra .= ' hysterical';
 
	    $hysterical = TRUE;
 
	    $class_extra .= ' historical';
 
	    $historical = TRUE;
 
	  }
 

	
 
	if ($semester['time_start'] < $time && $semester['time_end'] > $time)
 
	  $text_extra[] = 'current';
 

	
 
	$text_extra = implode($text_extra, ', ');
 
	if (strlen($text_extra))
 
	  $text_extra = ' (' . $text_extra . ')';
 

	
 
	echo '        <li class="semester' . $class_extra . '"><a href="' . $linkto . $semester['id'] . '">' . htmlentities($semester['name']) . '</a>' . $text_extra . "</li>\n";
 
      }
 
    if ($hysterical)
 
	echo '       <li style="display: none;" class="hysterical-show"><a class="hysterical-show-a" href="#">(Show hysterical semesters…)</a></li>' . PHP_EOL;
 
    if ($historical)
 
	echo '       <li style="display: none;" class="historical-show"><a class="historical-show-a" href="#">(Show historical semesters…)</a></li>' . PHP_EOL;
 
    echo "      </ul>\n";
 
    echo "    </p>\n";
 
  }
 

	
 
  /**
 
   * \brief
scripts/scheduleInput.js
Show inline comments
 
@@ -938,13 +938,13 @@ jQuery(document).ready(function() {
 
	credit_hours_shown = jQuery('#content').is('.credit-hours-shown');
 
	jQuery('.section-credit-hours-entry').live('change', function() {
 
		credit_hours_change(jQuery(this).closest('.section').data('course_i'));
 
	});
 

	
 
	/* For the ``Select Semester'' page */
 
	jQuery('.hysterical-show-a').click(function() {
 
	    jQuery('.hysterical').show();
 
	    jQuery('.hysterical-show').hide();
 
	jQuery('.historical-show-a').click(function() {
 
	    jQuery('.historical').show();
 
	    jQuery('.historical-show').hide();
 
	});
 
	jQuery('.hysterical-show').show();
 
	jQuery('.hysterical').hide();
 
	jQuery('.historical-show').show();
 
	jQuery('.historical').hide();
 
});
0 comments (0 inline, 0 general)