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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-02-24 05:22:21 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090224052221-xws3fir8gg46ovvz
Modifief exercise view, so that exercises can now be viewed in an
expandable javascript style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    tos_acceptbuttons.appendChild(dom_make_text_elem("p",
100
100
        "Error connecting to server. Please try again later. "));
101
101
    }
102
 
    else if (response.response == 'error')
103
 
    {
104
 
    tos_acceptbuttons.appendChild(dom_make_text_elem("p",
105
 
        "Error activating user: " + response.message));
106
 
    }
107
102
    else
108
103
    {
109
104
        /* Refresh the page; as the user is now (apparently) logged in */
110
 
        window.location.href = parse_url(window.location.href).args["url"] || "/";
 
105
        window.location.href = parse_url(window.location.href).args["url"];
111
106
    }
112
107
}
113
108