equal
deleted
inserted
replaced
29 params = ajaxEscape(params); |
29 params = ajaxEscape(params); |
30 ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() { |
30 ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() { |
31 if ( ajax.readyState == 4 && ajax.status == 200 ) |
31 if ( ajax.readyState == 4 && ajax.status == 200 ) |
32 { |
32 { |
33 var response = String(ajax.responseText + ''); |
33 var response = String(ajax.responseText + ''); |
34 if ( response.substr(0, 1) != '{' ) |
34 if ( !check_json_response(response) ) |
35 { |
35 { |
36 handle_invalid_json(ajax.responseText); |
36 handle_invalid_json(ajax.responseText); |
37 return false; |
37 return false; |
38 } |
38 } |
39 try { |
39 try { |
64 params = ajaxEscape(toJSONString(params)); |
64 params = ajaxEscape(toJSONString(params)); |
65 ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() { |
65 ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() { |
66 if ( ajax.readyState == 4 && ajax.status == 200 ) |
66 if ( ajax.readyState == 4 && ajax.status == 200 ) |
67 { |
67 { |
68 var response = String(ajax.responseText + ''); |
68 var response = String(ajax.responseText + ''); |
69 if ( response.substr(0, 1) != '{' ) |
69 if ( !check_json_response(response) ) |
70 { |
70 { |
71 handle_invalid_json(ajax.responseText); |
71 handle_invalid_json(ajax.responseText); |
72 return false; |
72 return false; |
73 } |
73 } |
74 try |
74 try |
386 params = ajaxEscape(params); |
386 params = ajaxEscape(params); |
387 ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() { |
387 ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() { |
388 if ( ajax.readyState == 4 && ajax.status == 200 ) |
388 if ( ajax.readyState == 4 && ajax.status == 200 ) |
389 { |
389 { |
390 var response = String(ajax.responseText + ''); |
390 var response = String(ajax.responseText + ''); |
391 if ( response.substr(0, 1) != '{' ) |
391 if ( !check_json_response(response) ) |
392 { |
392 { |
393 handle_invalid_json(ajax.responseText); |
393 handle_invalid_json(ajax.responseText); |
394 return false; |
394 return false; |
395 } |
395 } |
396 try |
396 try |