Close popup automatically

Created on 25 October 2024, 2 months ago

We have a requirement to close the popup automatically after a specified number of seconds have passed. Additionally the number of seconds must be different on mobile and desktop. I created a patch that adds 3 new configuration fields for desktop auto close timeout, mobile auto close timeout, and the breakpoint width in pixels at which the desktop timeout is applied. I have also applied Drupal coding standards for JavaScript, specifically that statements must be followed by a semicolon: JavaScript coding standards: Semicolons

I am sharing the patch here in case this feature is useful to other people.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇪🇸Spain Peacog

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