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

gcruz pushed a commit to branch gc/8537
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 63f7477d0286668be705c5602f0f889ca85ea26b
Author: Guillermo Cruz <guillermo.c...@slashdotmedia.com>
AuthorDate: Thu Feb 22 16:59:44 2024 -0700

    [#8537] moved g analytics further down the page
---
 Allura/allura/public/nf/js/jquery.notify.js                 | 5 ++++-
 Allura/allura/templates/jinja_master/master.html            | 2 +-
 Allura/allura/templates_responsive/jinja_master/master.html | 3 ++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Allura/allura/public/nf/js/jquery.notify.js 
b/Allura/allura/public/nf/js/jquery.notify.js
index 7e81ff58f..7b4b4bb76 100644
--- a/Allura/allura/public/nf/js/jquery.notify.js
+++ b/Allura/allura/public/nf/js/jquery.notify.js
@@ -107,7 +107,10 @@
                 });
             }
             $('.' + o.messageClass, self).addClass(o.newClass);
-            scanMessages(self, o);
+            var selector = '.' + o.newClass + '.' + o.messageClass;
+            $('body').on("click", selector, function(e) {
+              closer(this, o);
+            });
         });
     };
 
diff --git a/Allura/allura/templates/jinja_master/master.html 
b/Allura/allura/templates/jinja_master/master.html
index 19cb43ca1..95ee01e16 100644
--- a/Allura/allura/templates/jinja_master/master.html
+++ b/Allura/allura/templates/jinja_master/master.html
@@ -72,7 +72,6 @@
     {% endblock %}
     {% block head_bottom -%}
     {% endblock %}
-    {{ g.analytics.display() }}
 </head>
 
 <body{% block body_attrs %}{% endblock %} class="{% block body_css_class %}{% 
endblock %}" id="forge">
@@ -197,5 +196,6 @@
         });
     });
 </script>
+{{ g.analytics.display() }}
 </body>
 </html>
diff --git a/Allura/allura/templates_responsive/jinja_master/master.html 
b/Allura/allura/templates_responsive/jinja_master/master.html
index 5d28d00dc..76c470f92 100644
--- a/Allura/allura/templates_responsive/jinja_master/master.html
+++ b/Allura/allura/templates_responsive/jinja_master/master.html
@@ -72,7 +72,6 @@
 
     {% block head %}
     {% endblock %}
-    {{ g.analytics.display() }}
     {% block head_bottom -%}
     {% endblock %}
 </head>
@@ -163,5 +162,7 @@
 {% if flash %}
     <script type="text/javascript">{{ flash | safe }}</script>{# comes from 
flash.static_template in root.py and escaped by tg.flash allow_html setting #}
 {% endif %}
+{{ g.analytics.display() }}
+
 </body>
 </html>

Reply via email to