~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/media/groups.js

  • Committer: William Grant
  • Date: 2010-02-16 06:57:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: grantw@unimelb.edu.au-20100216065704-t95a9opd2vc74uif
Display a nice error when trying to add a group with an invalid name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        {
41
41
            /* pass */
42
42
        }
 
43
        else if (response.status == 400)
 
44
        {
 
45
            alert("Could not create group: " + response.getResponseHeader('X-IVLE-Action-Error'));
 
46
        }
43
47
        else
44
48
        {
45
49
            alert("Error: Could not add group. Does it already exist?");