Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 9, 2026

Motivation

  • The click handler only reacted to elements with the .everblock-modal-button class, preventing elements that only have the data-everclickmodal attribute from opening the modal.
  • Make it possible to trigger the Everblock modal from any element that declares data-everclickmodal without requiring a specific CSS class.

Description

  • Changed the delegated click selector in views/js/everblock.js from '.everblock-modal-button' to '.everblock-modal-button, [data-everclickmodal]'.
  • The existing modal data handling (data-everclickmodal, data-evercms, data-evermodal) and AJAX flow are left unchanged to preserve current behavior.

Testing

  • No automated tests were run for this change.

Codex Task

@CySSoO CySSoO merged commit 729c092 into master Jan 9, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants