CalPolyIEEE/ieee — pull request #156 by jhladky (2014-04-11 11:35:09+00:00)
Title: Use ajax for js consoles

This is a fairly extensive upgrade of the profile page js that actually removes more lines than it adds, while creating a faster and more extensible "console-system".
1. New js in ProfilePage.js gets what consoles are available to the user from the server (this will tie in with the Roles framework later), then based on that information dynamically loads only the js files necessary to run those consoles. Previously all the consoles were loaded regardless of whether the user could access them or not.
2. several files have been consolidated into the new consoles folder, and have been redesigned to be more consistent with the new system.
2a. One or two utility methods were also added to IEEE.js as part of this consolidation
3. Adding new consoles is now much easier, it is only necessary to add an Object to IEEE.consoles that supports the methods "setup", and "show". Theoretically the profile page should load quite a bit faster for the average user as it requires about 1k less lines now. CSS is not being dynamically loaded. This could be considered for the future.

this fixes #106, and goes a long way towards #111 as well