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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-02-25 01:28:18 UTC
  • Revision ID: grantw@unimelb.edu.au-20090225012818-jhcuqj3p8knbf3v2
Redirect to / in the ToS JS if we haven't got a URL to go to.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    else
103
103
    {
104
104
        /* Refresh the page; as the user is now (apparently) logged in */
105
 
        window.location.href = parse_url(window.location.href).args["url"];
 
105
        window.location.href = parse_url(window.location.href).args["url"] || "/";
106
106
    }
107
107
}
108
108