diff --git a/inc/class.course.inc b/inc/class.course.inc --- a/inc/class.course.inc +++ b/inc/class.course.inc @@ -29,7 +29,7 @@ include_once 'class.section.php'; class Course implements IteratorAggregate { private $name; // String - private $title; + private $title; // String private $sections; // Array of sections private $nsections; // int /** diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -112,6 +112,7 @@ class page $this->headCode['gliderHeadcode'] = ''; $this->headCode['uiTabsKeyboard'] = ''; $this->headCode['displayTables'] = ''; + $this->headCode['inPlace'] = ''; $this->pagetitle = $ntitle; $this->scripts = $nscripts; diff --git a/inc/class.schedule.php b/inc/class.schedule.php --- a/inc/class.schedule.php +++ b/inc/class.schedule.php @@ -288,7 +288,7 @@ class Schedule $headcode = array('jQuery', 'jQueryUI', 'uiTabsKeyboard', 'outputStyle', 'outputPrintStyle', 'displayTables'); } else { - $headcode = array('outputStyle', 'jQuery', 'jQueryUI', 'jAddress', 'uiTabsKeyboard', 'displayTables'); + $headcode = array('outputStyle', 'jQuery', 'jQueryUI', 'jAddress', 'uiTabsKeyboard', 'qTip2','displayTables'); } $outputPage = page::page_create(htmlentities($this->getName()), $headcode); $outputPage->head(); @@ -524,12 +524,14 @@ class Schedule $title = ''; else $title .= ' '; + + $carret = ' ' . htmlentities("
"); echo ' ' + . '" class="qTipCell ' . $single_multi . ' class' . $j + . '" title="' . htmlentities($title, ENT_QUOTES) . $carret + . 'Prof: ' . htmlentities($section->getProf(), ENT_QUOTES) . $carret + . 'Room: ' . htmlentities($current_meeting->getLocation(), ENT_QUOTES) . $carret + . 'Type: ' . htmlentities($current_meeting->type_get(), ENT_QUOTES) . $carret . '">' . '' . htmlentities($title) . '' . PHP_EOL . htmlentities($course->getName(), ENT_QUOTES) . '-' . htmlentities($section->getLetter(), ENT_QUOTES) . "\n" diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -24,7 +24,7 @@ include_once 'inc' . DIRECTORY_SEPARATOR include_once 'inc' . DIRECTORY_SEPARATOR . 'class.page.php'; require_once('inc' . DIRECTORY_SEPARATOR . 'schedule_store.inc'); -$scripts = array('jQuery', 'jQueryUI', 'qTip2','schedInput'); +$scripts = array('jQuery', 'jQueryUI', 'qTip2', 'inPlace', 'schedInput'); $inputPage = page::page_create('Scheduler', $scripts, FALSE); $schedule_store = FALSE; diff --git a/school.d/cedarville.crawl.inc b/school.d/cedarville.crawl.inc --- a/school.d/cedarville.crawl.inc +++ b/school.d/cedarville.crawl.inc @@ -188,6 +188,7 @@ function cedarville_crawl(array &$semest } $instructor = $course_table[3]; + $title = $course_table[2]; /* * Each course may have multiple meeting times associated @@ -258,7 +259,7 @@ function cedarville_crawl(array &$semest $semester->section_add($section_parts['department'], $section_parts['course'], new Section($section_parts['section'], $meetings, - $synonym, $instructor)); + $synonym, $instructor), $title); } } diff --git a/scripts/displayTables.js b/scripts/displayTables.js --- a/scripts/displayTables.js +++ b/scripts/displayTables.js @@ -121,8 +121,22 @@ jQuery(document).ready( function() jQuery("#regDialog").dialog('open'); + + return false; }); + + jQuery('.qTipCell').qtip( + { + style: { + tip: true, + classes: "ui-tooltip-dark ui-tooltip-shadow ui-tooltip-rounded" + }, + position:{ + my: 'bottom left', + at: 'center', + } + }); } ); diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -264,7 +264,7 @@ function add_class_n(course_id, title) course_remove(slate_permutate_course_free); sectionsOfClass[classNum] = 0; // Initialize at 0 - jQuery('#jsrows').append('
'); + jQuery('#jsrows').append('
'); /* store classNum as course_i into the : */ jQuery('#tr-course-' + classNum).data({course_i: classNum}); @@ -575,4 +575,13 @@ jQuery(document).ready(function() { }); + //------------------------------------------------- + // Style course titles as inputs when clicked + //------------------------------------------------- + jQuery('.course-title-entry').live('click', function() { + jQuery(this).toggleClass('inPlace'); + }); + jQuery('.course-title-entry').live('blur', function() { + jQuery(this).addClass('inPlace'); + }); }); diff --git a/styles/general.css b/styles/general.css --- a/styles/general.css +++ b/styles/general.css @@ -390,3 +390,8 @@ a:hover { font: normal bold 1.2em sans-serif; } +.inPlace { + color: #000; + border: none; + background: transparent; +}