mirror of
https://github.com/myvesta/vesta
synced 2025-07-30 11:39:44 -07:00
JSON parser improved. Fixed problem with parsing special symbols
This commit is contained in:
parent
c80f12eaa4
commit
b472a367d5
6 changed files with 107 additions and 11 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue