Improves jQuery extension in xorg.js.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 7 Nov 2010 15:48:17 +0000 (16:48 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 29 Jan 2011 19:38:19 +0000 (20:38 +0100)
commit102f3fc28cab187174e12301f8a960749614799e
tree4e3fe4880ded5792dc3165fd1ebb793c5392721b
parent6a686adb39d65e4472497f4ce69f0314085cead3
Improves jQuery extension in xorg.js.

This provides the following Ajax-based API:
  $.xget(url, data, onSuccess, onError, type);
  $.xgetJSON(url, data, onSuccess, onError);
  $.xgetScript(url, onSuccess, onError);
  $.xpost(url, data, onSuccess, onError, type);
These functions support does the same as the jQuery's default ajax
function (without 'x' prefix) but distinguish the case of http success and
the case of http error (500, 40x). By default onSuccess is null, while
onError display an alert.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
htdocs/javascript/igoogle.js
htdocs/javascript/profile.js
htdocs/javascript/xorg.js
templates/emails/redirect.tpl