Improves jQuery extension in xorg.js.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 7 Nov 2010 15:48:17 +0000 (16:48 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 7 Nov 2010 15:48:17 +0000 (16:48 +0100)
commitce38195f530cf39b8f760aa6ed29ef74d82910ed
treeeb71977b5af91c7d473a5d4f31dacd209d551236
parentb0e935d6af8eb37e423b8bb862e477d9e09af0f5
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