You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2012/05/14 11:15:11 UTC

svn commit: r1338101 - in /ofbiz/trunk/framework/images/webapp/images: fieldlookup.js selectall.js

Author: jleroux
Date: Mon May 14 09:15:10 2012
New Revision: 1338101

URL: http://svn.apache.org/viewvc?rev=1338101&view=rev
Log:
Complete r1338065, the same message existed in fieldlookup.js
Also no needs to i18n such error messages, I removed the //TODO

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

Modified: ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/fieldlookup.js?rev=1338101&r1=1338100&r2=1338101&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/fieldlookup.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/fieldlookup.js Mon May 14 09:15:10 2012
@@ -292,8 +292,9 @@ function ConstructLookup(requestUrl, inp
                     }
                 },
                 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);
+                    }
                     location.reload(true);
                 },
             });

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