Merge branch 'refs/heads/master' into dev-blackboard-import
Clean up "Future" Courses

Since I'm already hiding future courses from students, let's also remove the duplicate "future" courses that are really in the past but just aren't published.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/dev-resources-menu'
Merge branch 'refs/heads/dev-branding'
Merge branch 'refs/heads/dev-branding'
Merge branch 'refs/heads/dev-branding'
Modern Language

Added another departmental resource link, hid Curricuplan from students.

(Still need to elegant-ify the department setup…)

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/dev-resources-menu'
Whoops

An anachronistic call to PestCanvas was fixed.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/dev-blackboard-import'
Scrollable Faculty Journal

Allow teachers to open a scrollable faculty journal page from their People listing for a course. Inserts a menu and next/prev buttons into the resulting faculty journal page to let teachers scroll through each student in their course, from within the faculty journal.

Signed-off-by: Seth Battis <seth@battis.net>
Consistent Instance

Updated the code to stay consistently on the test instance, for now (rather than switching midstream).

Signed-off-by: Seth Battis <seth@battis.net>
Caching

Menus are now cached (six hours default, configurable in config.inc.php).

Did a little cleanup to simply the test/live instance switch-over.

Signed-off-by: Seth Battis <seth@battis.net>
Timing

Put a delay in before adding the Faculty Journal button (I'm guessing the timing wasn't about the menus -- although we're now dependent on resources-menu.js running ahead of us -- but actually on the sidebar completing loading dynamically.

Whatevs. It works.

Signed-off-by: Seth Battis <seth@battis.net>
Variable Timing

For whatever reason, loading the menu seems to happen slightly sooner than adding the button, which means that the userClass may not have been set yet. Since students can't see the Faculty Journal anyway, no need to check if they're teachers, I guess.

Signed-off-by: Seth Battis <seth@battis.net>
Going Live

Switching over to live instance from the test instance.

Signed-off-by: Seth Battis <seth@battis.net>
Merge branch 'refs/heads/dev-faculty-journal'
Updated Course Colors List

Signed-off-by: Seth Battis <seth@battis.net>
Delays no longer arbitrary

Gee, if the problem is that the code needs a particular element or variable to be ready before it runs, howsabout not just guessing how long it _might_ take, but just waiting for it to be ready?

Gosh, Seth, that's a good idea!

Darn right it is. So now the code will simply keep retrying until the elements it needs for its tests are ready and can be used.

For dumb.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Dynamically Load Students

Switched over to using AJAX to load student menu, so that faculty will see the menu, even before it's loaded.

(Also: vertically centered everything so that I would stop getting heebie-jeebies. Opted not to force DIVs to be TABLEs in my HTML/CSS, which means I have a bunch of old-school TABLEs. Sigh.)

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>