Changeset - 6c9e24886620
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2010-10-17 01:16:16
ohnobinki@ohnopublishing.net
Use 'h' for Thursday instead of 'u'. There are probably other stray places still using 'u' somehow...
2 files changed with 2 insertions and 7 deletions:
0 comments (0 inline, 0 general)
class.section.php
Show inline comments
 
@@ -264,7 +264,7 @@ class Section
 
   */
 
  public function to_json_array()
 
  {
 
    static $daymap = array(0 => 'm', 1 => 't', 2 => 'w', 3 => 'u', 4 => 'f');
 
    static $daymap = array(0 => 'm', 1 => 't', 2 => 'w', 3 => 'h', 4 => 'f');
 

	
 
    $json_array = array('section' => $this->letter,
 
			'prof' => $this->prof,
scripts/scheduleInput.js
Show inline comments
 
@@ -158,12 +158,7 @@ function add_sections(cnum, data)
 
    for (i = data.sections.length - 1; i >= 0; i --)
 
	{
 
	    section = data.sections[i];
 
	    days = section.days;
 
	    if (days.u)
 
		days.h = days.u;
 
	    else
 
		days.h = false;
 
	    add_section_n(cnum, section.section, section.synonym, section.time_start, section.time_end, days, section.prof);
 
	    add_section_n(cnum, section.section, section.synonym, section.time_start, section.time_end, section.days, section.prof);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)