Add missing dom change listener triggering in user profile tab menu
authorMatthias Schmidt <gravatronics@live.com>
Sun, 4 Sep 2016 17:17:22 +0000 (19:17 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 4 Sep 2016 17:17:22 +0000 (19:17 +0200)
wcfsetup/install/files/js/WCF.User.js

index df8608d45e585aab3a16071fe64d0255668a13af..18a04a2832b9f2013be799f8968e3a726108980d 100644 (file)
@@ -850,8 +850,10 @@ WCF.User.Profile.TabMenu = Class.extend({
                
                // insert content, uses non jQuery because DomUtil.insertHtml() moves <script> elements
                // to the bottom of the element by default which is exactly what is required here
-               require(['Dom/Util'], function(DomUtil) {
+               require(['Dom/ChangeListener', 'Dom/Util'], function(DomChangeListener, DomUtil) {
                        DomUtil.insertHtml(data.returnValues.template, elById($containerID), 'append');
+                       
+                       DomChangeListener.trigger();
                });
        }
 });