Author: jleroux Date: Mon May 14 08:52:53 2012 New Revision: 1338072 URL: http://svn.apache.org/viewvc?rev=1338072&view=rev Log: "Applied fix from trunk for revision: 1338065 " ------------------------------------------------------------------------ r1338065 | jleroux | 2012-05-14 10:51:08 +0200 (lun., 14 mai 2012) | 7 lines
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/branches/release11.04/ (props changed) ofbiz/branches/release11.04/framework/images/webapp/images/selectall.js Propchange: ofbiz/branches/release11.04/ ------------------------------------------------------------------------------ Merged /ofbiz/trunk:r1338065 Modified: ofbiz/branches/release11.04/framework/images/webapp/images/selectall.js URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/framework/images/webapp/images/selectall.js?rev=1338072&r1=1338071&r2=1338072&view=diff ============================================================================== --- ofbiz/branches/release11.04/framework/images/webapp/images/selectall.js (original) +++ ofbiz/branches/release11.04/framework/images/webapp/images/selectall.js Mon May 14 08:52:53 2012 @@ -450,7 +450,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); + } }, }); },

