Skip to content

Commit

Permalink
cleaninig
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Dec 14, 2024
1 parent df8e2db commit f5d6275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Products/zms/etc/zms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Welcome to ZMS 4
# Welcome to ZMS 5
###############################################################################
#
# This is the Zope configuration file. The Zope configuration file
Expand Down
5 changes: 3 additions & 2 deletions Products/zms/plugins/www/zmi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <body>
* element. htmx will change outerHTML on <body> to use innerHTML. So, the classList will not
* be renewed after htmx request. To fix this, we have to add the classList to the <body> element
* be renewed after htmx request. That is why the classList has to be added again the <body>
* element after request
* Source: https://htmx.org/attributes/hx-swap/
*/
if (typeof htmx != "undefined") {
Expand Down Expand Up @@ -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');
};
Expand Down

0 comments on commit f5d6275

Please sign in to comment.