Skip to content

Commit

Permalink
EcardToTarget: use hide class instead of display none so elements are…
Browse files Browse the repository at this point in the history
… revealed in debug mode
  • Loading branch information
MichaelT372 committed Feb 28, 2024
1 parent 55fb2a9 commit c3e7c5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/engrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Monday, February 26, 2024 @ 11:01:17 ET
* Date: Wednesday, February 28, 2024 @ 07:37:38 ET
* By: michael
* ENGrid styles: v0.17.9
* ENGrid scripts: v0.17.10
Expand Down
8 changes: 4 additions & 4 deletions dist/engrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Monday, February 26, 2024 @ 11:01:17 ET
* Date: Wednesday, February 28, 2024 @ 07:37:38 ET
* By: michael
* ENGrid styles: v0.17.9
* ENGrid scripts: v0.17.10
Expand Down Expand Up @@ -20786,15 +20786,15 @@ class EcardToTarget {
const targetBlock = document.querySelector(".en__ecardrecipients");

if (this.options.hideMessage && messageBlock) {
messageBlock.style.display = "none";
messageBlock.classList.add("hide");
}

if (this.options.hideSendDate && sendDateBlock) {
sendDateBlock.style.display = "none";
sendDateBlock.classList.add("hide");
}

if (this.options.hideTarget && targetBlock) {
targetBlock.style.display = "none";
targetBlock.classList.add("hide");
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/engrid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/engrid.min.js

Large diffs are not rendered by default.

0 comments on commit c3e7c5a

Please sign in to comment.