learningequality/ka-lite — pull request #321 by rtibbles (2013-07-28 23:19:46+00:00)
Title: Allow change facility and group on both tabular and graph coach reports.

This is a fix for issue #290.

Changing both the facility and the group should now be active across all coach reports (including the landing page).

Summary of changes:

*The basic coach report context function now returns all groups across all facilities to the client for teachers and super users (note: this will cause more database requests, as it queries for each facility to build lists within each facility).
*There is now a different select DOM element for each list of groups for each facility, disambiguated by facility id in the element id.

@wangguan59 please test this code to ensure it has fixed the problems you identified in Issue #290.