# HG changeset patch # User Ethan Zonca # Date 2011-01-15 13:51:11 # Node ID 91587f0c2417a086fcc3f957b06eb5cad557dbd2 # Parent 896a269a2822c04828a5225fea9318d2b4611904 Show onload qtip for class ID on pageload for first item only. Todo: show the tip on the last class, so that default classes work. diff --git a/school.d/cedarville.inc b/school.d/cedarville.inc --- a/school.d/cedarville.inc +++ b/school.d/cedarville.inc @@ -54,6 +54,7 @@ EOF; * \return * An array of Course objects. */ +/* function cedarville_default_classes() { $chapel = new Course('Chapel'); @@ -62,6 +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 @@ -221,7 +221,7 @@ function addTips(id) { tip: true }, show: { effect: { type: 'fade', length: 2000 } }, -/* show: { ready: false }, */ + show: { ready: true }, /* hide: { when: { event: 'inactive' } }, */ corner: { target: 'topMiddle', tooltip: 'bottomMiddle' }, }); @@ -294,7 +294,9 @@ function add_sections(cnum, data) } }); - addTips('.class'+classNum+ ' td:first'); + if(classNum == 0) { + addTips('.class'+classNum+ ' td:first'); + } classNum++; return (classNum - 1);