svn commit: r1816537 - /ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js

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

svn commit: r1816537 - /ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js

Deepak Dixit-5
Author: deepak
Date: Tue Nov 28 10:38:06 2017
New Revision: 1816537

URL: http://svn.apache.org/viewvc?rev=1816537&view=rev
Log:
Improved: Use console.log instead of alert to show error message if setLocaleFromBrowser return error.
  setLocaleFromBrowser request called setUserLocale.js and its executed for each request,
   auth is set true for setLocaleFromBrowser service so it return error if it executed from login screen.
   Still need to refine way to set setLocaleFromBrowser as this request executed with each time when page refreshed.

Modified:
    ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js

Modified: ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js?rev=1816537&r1=1816536&r2=1816537&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js (original)
+++ ofbiz/ofbiz-framework/trunk/themes/common/webapp/common/js/util/setUserLocale.js Tue Nov 28 10:38:06 2017
@@ -25,7 +25,7 @@ $.ajax({
     data: "localeName=" + timezone,
     error: function(error) {
         if (error != "") {
-            alert("Error while setting user locale: " + error);
+            console.log("Error while setting user locale: ", error);
         }
     }
 });