includes/clientside/static/acl.js
changeset 407 35d94240a197
parent 377 bb3e6c3bd4f4
child 419 b8b4e38825db
--- a/includes/clientside/static/acl.js	Fri Feb 08 23:20:20 2008 -0500
+++ b/includes/clientside/static/acl.js	Sun Feb 10 19:35:06 2008 -0500
@@ -25,7 +25,7 @@
   params = toJSONString(params);
   params = ajaxEscape(params);
   ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() {
-      if(ajax.readyState == 4)
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         var response = String(ajax.responseText + '');
         if ( response.substr(0, 1) != '{' )
@@ -66,7 +66,7 @@
   params = toJSONString(params);
   params = ajaxEscape(params);
   ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() {
-      if(ajax.readyState == 4)
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         document.getElementById(aclManagerID+'_main').innerHTML = '';
         document.getElementById(aclManagerID + '_back').style.display = 'none';
@@ -316,7 +316,7 @@
   params = toJSONString(params);
   params = ajaxEscape(params);
   ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() {
-      if(ajax.readyState == 4)
+      if ( ajax.readyState == 4 && ajax.status == 200 )
       {
         var response = String(ajax.responseText + '');
         if ( response.substr(0, 1) != '{' )
@@ -459,7 +459,7 @@
           params = toJSONString(params);
           params = ajaxEscape(params);
           ajaxPost(stdAjaxPrefix+'&_mode=acljson', 'acl_params='+params, function() {
-              if(ajax.readyState == 4)
+              if ( ajax.readyState == 4 && ajax.status == 200 )
               {
                 document.getElementById(aclManagerID+'_main').innerHTML = '';
                 document.getElementById(aclManagerID + '_back').style.display = 'none';