roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r330593 - /incubator/roller/trunk/web/theme/scripts/ajax-user.js
Date Thu, 03 Nov 2005 18:01:23 GMT
Author: snoopdave
Date: Thu Nov  3 10:00:54 2005
New Revision: 330593

URL: http://svn.apache.org/viewcvs?rev=330593&view=rev
Log:
ROL-871 fix: Work around Moz 1.4/SPARC problem with XmlHttpRequest.abort() method

Modified:
    incubator/roller/trunk/web/theme/scripts/ajax-user.js

Modified: incubator/roller/trunk/web/theme/scripts/ajax-user.js
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/web/theme/scripts/ajax-user.js?rev=330593&r1=330592&r2=330593&view=diff
==============================================================================
--- incubator/roller/trunk/web/theme/scripts/ajax-user.js (original)
+++ incubator/roller/trunk/web/theme/scripts/ajax-user.js Thu Nov  3 10:00:54 2005
@@ -37,7 +37,7 @@
     userName.value = user.value;
 }
 function sendUserRequest(url) {
-    if (isBusy) http.abort();
+    if (isBusy) return;
     isBusy = true;
     http.open('get', url);
     http.onreadystatechange = handleUserResponse;
@@ -51,7 +51,6 @@
         }   
         //userList.onchange = null;
         data = http.responseText;  
-        //alert(data);
         if (data.indexOf("\n") != -1) {
             lines = data.split('\n');
             for (i = 0; i < lines.length; i++) {
@@ -62,6 +61,7 @@
                 }
             }
         }  
-        isBusy = false;
+
     }
+    isBusy = false;
 }



Mime
View raw message