Enable checking existence of popup block identified by class

Created on 6 March 2024, 10 months ago

Problem/Motivation

In the code to check whether the popup block exists, it is assumed that the identifier is an ID (when it might be a class):

// Check to see if the block exists in the current page.
var element = document.getElementById(block_id);

Proposed resolution

Check whether the block identifier has been registered as an ID or a class (using values.css_selector)

Remaining tasks

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom jofitz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024