Skip to content

elements_parent_selector ignore custom_add_location #166

@Aterkop

Description

@Aterkop

Hi there,
In my project I want to add collection element in tab content with add buton in tab header. For that I use :

  • after_add function : to add tab header foreach new element
  • custom_add_location : to use a custom button in tab header
  • elements_parent_selector : to automatically add my collection element into tab content div

The 2 fisrts elements works as espected but when I add elements_parent_selector, a standard add button is added at the end of my tab-content (my elements_parent_selector). The elements_parent_selector ignores custom_add_location.
I fix it by adding
if (settings.add && !settings.custom_add_location) {
to jquery.collection.js line 345.
Please see if you can fix it for a future release.
Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions