# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-17 01:16:16 # Node ID 6c9e24886620cbd88ed177e834f8305bbbcac941 # Parent baed9bb6d123cf901f18be9a1b4d6f373f14f357 Use 'h' for Thursday instead of 'u'. There are probably other stray places still using 'u' somehow... diff --git a/class.section.php b/class.section.php --- a/class.section.php +++ b/class.section.php @@ -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, diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -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); } }