diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -62,8 +62,10 @@ else $my_hc .= ' class_last = add_class(); '; } +$my_hc .= ' addTips();'; $my_hc .= ' }); '; + $inputPage->headcode_add('scheduleInput', $inputPage->script_wrap($my_hc), TRUE); $inputPage->head(); diff --git a/school.d/cedarville.inc b/school.d/cedarville.inc --- a/school.d/cedarville.inc +++ b/school.d/cedarville.inc @@ -54,7 +54,7 @@ EOF; * \return * An array of Course objects. */ -/* + function cedarville_default_classes() { $chapel = new Course('Chapel'); @@ -63,7 +63,7 @@ function cedarville_default_classes() return array($chapel); } -*/ + /** * \brief diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -213,10 +213,18 @@ function genOptionHtml(value, content, t /** Add tooltips for user guidance */ -function addTips(id) { - jQuery(id).qtip({ +function addTips() { + + var tr = jQuery('tr'); + var td = tr.eq(tr.length-2); + jQuery('td:first', td).qtip({ content: 'Type your class ID (such as PEF-1010)', style: { + border: { + width: 3, + radius: 4, + color: '#333' + }, name: 'dark', tip: true }, @@ -227,7 +235,6 @@ function addTips(id) { }); } - /** * \brief * Add a section to a class. @@ -268,7 +275,7 @@ function add_sections(cnum, data) function add_class_n(name) { sectionsOfClass[classNum] = 0; // Initialize at 0 - jQuery('#jsrows').append('