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
 
@@ -535,10 +535,9 @@ class page
 

	
 
    $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";
 
@@ -553,8 +552,8 @@ class page
 
	  }
 
	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)
 
@@ -566,8 +565,8 @@ class page
 

	
 
	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";
 
  }
scripts/scheduleInput.js
Show inline comments
 
@@ -941,10 +941,10 @@ jQuery(document).ready(function() {
 
	});
 

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