Author: jleroux
Date: Tue Mar 13 11:59:45 2018
New Revision: 1826623
URL:
http://svn.apache.org/viewvc?rev=1826623&view=revLog:
Improved: no functional change, replaces tabs by spaces (cool now Eclipse shows
the diff, not sure if it's some of my setting changes or what)
Modified:
ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js
Modified: ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js?rev=1826623&r1=1826622&r2=1826623&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js (original)
+++ ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js Tue Mar 13 11:59:45 2018
@@ -1025,18 +1025,18 @@ function waitSpinnerHide() {
* @return JSON Object
*/
function getJSONuiLabels(requiredLabels, callback) {
- var requiredLabelsStr = JSON.stringify(requiredLabels)
+ var requiredLabelsStr = JSON.stringify(requiredLabels)
- if (requiredLabels != null && requiredLabels != "") {
- jQuery.ajax({
- url: "getJSONuiLabelArray",
- type: "POST",
- data: {"requiredLabels" : requiredLabelsStr},
- complete: function(data) {
- callback(data);
- }
- });
- }
+ if (requiredLabels != null && requiredLabels != "") {
+ jQuery.ajax({
+ url: "getJSONuiLabelArray",
+ type: "POST",
+ data: {"requiredLabels" : requiredLabelsStr},
+ complete: function(data) {
+ callback(data);
+ }
+ });
+ }
}
/**
* Read the requiered uiLabel from the uiLabelXml Resource
@@ -1094,7 +1094,7 @@ function showErrorAlertLoadUiLabel(errBo
}
// request the labels
getJSONuiLabels(labels, function(result){
- labels = result.responseJSON;
+ labels = result.responseJSON;
});
var errMsgBox = jQuery("#contentarea").after(jQuery("<div id='errorAlertBox'></div>"));