svn commit: r1338065 - /ofbiz/trunk/framework/images/webapp/images/selectall.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1338065 - /ofbiz/trunk/framework/images/webapp/images/selectall.js

jleroux@apache.org
Author: jleroux
Date: Mon May 14 08:51:08 2012
New Revision: 1338065

URL: http://svn.apache.org/viewvc?rev=1338065&view=rev
Log:
A patch from Amardeep Singh Jhajj "Ajax autocomplete error while adding 1st item in order manager order creation" https://issues.apache.org/jira/browse/OFBIZ-4867

I found the small bug that when ajax request is aborted in autocompleter, the alert box is opened with message
- An error occurred while communicating with the server:
    reason=abort
    exception=abort.
Hence, I have added a check to handle ajax abort exception in such case.

Modified:
    ofbiz/trunk/framework/images/webapp/images/selectall.js

Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=1338065&r1=1338064&r2=1338065&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Mon May 14 08:51:08 2012
@@ -445,7 +445,9 @@ function ajaxAutoCompleter(areaCsvString
                     },
                     error: function(xhr, reason, exception) {
                         //TODO ... need to localize the following error message.
-                        alert("An error occurred while communicating with the server:\n\n\nreason=" + reason + "\n\nexception=" + exception);
+                        if(exception != 'abort') {
+                            alert("An error occurred while communicating with the server:\n\n\nreason=" + reason + "\n\nexception=" + exception);
+                        }
                     },
                 });
             },