[ofbiz-framework] branch trunk updated: Fixed: Show border and file name for content rendered from ftl (OFBIZ-12002)

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

[ofbiz-framework] branch trunk updated: Fixed: Show border and file name for content rendered from ftl (OFBIZ-12002)

James Yong-2
This is an automated email from the ASF dual-hosted git repository.

jamesyong pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 26fcfd1  Fixed: Show border and file name for content rendered from ftl (OFBIZ-12002)
26fcfd1 is described below

commit 26fcfd180bb78ecad25cbe5b891c45a8664f93be
Author: James Yong <[hidden email]>
AuthorDate: Mon Sep 21 14:23:36 2020 +0800

    Fixed: Show border and file name for content rendered from ftl (OFBIZ-12002)
   
    Unable to add internal organization in HR tree
   
    Thanks Olivier for reporting
---
 .../webapp/common/js/util/OfbizUtil.js             | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/themes/common-theme/webapp/common/js/util/OfbizUtil.js b/themes/common-theme/webapp/common/js/util/OfbizUtil.js
index 9aa14bb..948e8ca 100644
--- a/themes/common-theme/webapp/common/js/util/OfbizUtil.js
+++ b/themes/common-theme/webapp/common/js/util/OfbizUtil.js
@@ -35,18 +35,24 @@ $(document).ready(function() {
         }
       }
     });
+    jQuery(document).ajaxSuccess(function () {
+        initNamedBorder();
+    })
     //initializing UI combobox dropdown by overriding its methods.
     ajaxAutoCompleteDropDown();
     // bindObservers will add observer on passed html section when DOM is ready.
     bindObservers("body");
-    // fadeout info-overlay labels
-    setTimeout(function(){
-        $('.info-overlay').fadeOut(1000, function(){
-            $('.info-container').contents().unwrap();
-            $('.info-content').contents().unwrap();
-            $('.info-overlay').delay(1000).remove();
-        });
-    }, 3000);
+
+    function initNamedBorder() {
+        // fadeout info-overlay labels
+        setTimeout(function(){
+            $('.info-overlay').fadeOut(1000, function(){
+                $('.info-container').contents().unwrap();
+                $('.info-content').contents().unwrap();
+                $('.info-overlay').delay(1000).remove();
+            });
+        }, 3000);
+    }
 });
 
 /* bindObservers function contains the code of adding observers and it can be called for specific section as well