SLL certificates upload implementation step #1

This commit is contained in:
Dima Malishev 2011-09-10 22:35:16 +03:00
commit 373c5f25b2
10 changed files with 52 additions and 171 deletions

View file

@ -184,11 +184,19 @@ App.Ajax.request = function(jedi_method, data, callback)
dataType: "text",
async: true,
success: function(reply)
{
{
reply = reply.replace(/\\'/gi, '');
reply = reply.replace(/\'/gi, '');
reply = jsonParse(reply);
if (reply.result == 'NOT_AUTHORISED') {
return alert('NOT AUTH');
}
//timer.start();
callback && callback(jsonParse(reply));
callback && callback(reply);
App.Helpers.afterAjax();
//timer.stop(jedi_method);
},