office_hours.js hides other [Add] buttons in widget

Created on 20 February 2024, 4 months ago
Updated 25 June 2024, 3 days ago

Problem/Motivation

The office_hours.js hide every add button on the page

Steps to reproduce

1. install office_hours
2. install Inline Entity Form β†’ or any other module that add Add button
3. Add field reference for exemple field_ref refer to page content and choose the widget Inline entity form - Complex with the option "Allow users to add new nodes."
4. Add office hours field

5. Go to Add article form page:

The button to add new content is hidden because the office_hours.js add this code $('[id$=add]').each(showAddLink); which hide every button with ID ends with add.

Article add page with office hours

Article add page without office hours

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.16

Component

Code - widget

Created by

πŸ‡«πŸ‡·France berramou

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

Comments & Activities

Production build 0.69.0 2024