diff --git a/Products/zms/etc/zms.conf b/Products/zms/etc/zms.conf index 7038313a9..bb8c73b8d 100644 --- a/Products/zms/etc/zms.conf +++ b/Products/zms/etc/zms.conf @@ -1,5 +1,5 @@ ############################################################################### -# Welcome to ZMS 4 +# Welcome to ZMS 5 ############################################################################### # # This is the Zope configuration file. The Zope configuration file diff --git a/Products/zms/plugins/www/zmi.js b/Products/zms/plugins/www/zmi.js index 9cddff9eb..b25043f30 100644 --- a/Products/zms/plugins/www/zmi.js +++ b/Products/zms/plugins/www/zmi.js @@ -23,7 +23,8 @@ if (typeof $ == "undefined") { * HTMX: Add loading class to body on htmx:beforeRequest and remove it on htmx:afterRequest * Hint: Due to DOM limitations, it’s not possible to use the outerHTML method on the * element. htmx will change outerHTML on to use innerHTML. So, the classList will not - * be renewed after htmx request. To fix this, we have to add the classList to the element + * be renewed after htmx request. That is why the classList has to be added again the + * element after request * Source: https://htmx.org/attributes/hx-swap/ */ if (typeof htmx != "undefined") { @@ -74,7 +75,7 @@ if (typeof htmx != "undefined") { * jQuery: Run $ZMI.ready() on document.ready */ $ZMI.registerReady(function() { - // Remove loading class from body + // Remove loading class from body if (document.querySelector('body') != null && document.querySelector('body').classList.contains("loading")) { document.querySelector('body').classList.remove('loading'); };