JSON parser improved. Fixed problem with parsing special symbols

This commit is contained in:
Dima Malishev 2011-08-21 20:59:04 +03:00
parent c80f12eaa4
commit b472a367d5
6 changed files with 107 additions and 11 deletions

View file

@ -189,13 +189,15 @@ App.Ajax.request = function(jedi_method, data, callback)
type: data.request_method || "POST",
data: $.extend(data, {'jedi_method': jedi_method}),
dataType: "text",
async:true,
async: true,
success: function(reply)
{
timer.start();
reply = reply.replace(/\\'/gi, '');
reply = reply.replace(/\'/gi, '');
//timer.start();
callback && callback(jsonParse(reply));
App.Helpers.afterAjax();
timer.stop(jedi_method);
//timer.stop(jedi_method);
},
error: function()
{