Session handling

This commit is contained in:
Dima Malishev 2011-09-11 02:57:00 +03:00
commit b1ea8b2726
10 changed files with 243 additions and 91 deletions

View file

@ -191,8 +191,9 @@ App.Ajax.request = function(jedi_method, data, callback)
reply = jsonParse(reply);
if (reply.result == 'NOT_AUTHORISED') {
return alert('NOT AUTH');
$('#content').html('<center><h1 style="font-size: 18px;color:red;">Not Authorized</h1></center>');
App.Helpers.afterAjax();
return App.Actions.authorize();
}
//timer.start();