Renamed sfuid to username
Fixed section enrolment and set to enrol teachers to default section
Revert "Renamed sfuid to username"

This reverts commit 78b83876a791a60c6a355182b92df7a8f118103b.
Merge pull request #20 from ronvs/course-form-plugin

Fixed the section enrollment csv
Refactor course request form JavaScript

Notable highlights:
- Move JS into its own file
- Encapsulate everything into an IIFE. Closures FTW!
- Remove 'clear on focus' behaviour from username field
- Remove inline onChange handlers from the template and utilize
  $.fn.on instead. Separation of concerns FTW!
- Use a simple jQuery plugin for Spin

prevent enter in #username from submitting form

trigger a click on the button instead

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

whitespace, yo

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

don't clear the username field on click

clearing the username field on a click isn't user-friendly -- what if they wanted to fix a typo?

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

convert $.getJSON calls to use $.ajax and provide error handlers

$.getJSON doesn't support providing an error handler

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

use an object instead of an array to hold term codes

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

change wording of cross-list checkbox text

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

move course request form javascript into external file

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

move click handlers into ready fn

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

add a jquery plugin for spin.js

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

rename opts -> spinnerOpts

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

use spin plugin

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

remove un-used variables to make jshint less angry

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

remove inline onchange handlers

inline handlers are evil

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

add click handlers for checkboxes

replaces inline handlers

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

fix selectors

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>

whitespace fixes

Signed-off-by: Graham Ballantyne <grahamb@sfu.ca>
Merge pull request #21 from grahamb/courseform

Refactor course request form JavaScript