Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close associated popup submenu at layertree removal #5358

Merged
merged 1 commit into from Dec 19, 2019

Conversation

llienher
Copy link
Member

@llienher llienher commented Dec 13, 2019

https://jira.camptocamp.com/browse/GSGMF-1161

This fix allows a node to be removed from layertree as well as its associated popup menu if existing.

I had to add a new ID to HTML element to easily find the attributes I needed to extract. Popup identifier is created randomly at each new opening and is not consistent when closing/opening the menu.

I added this popup identifer to a optional custom attribute in the GMF group and retrieve it when I want to target the existing popup.

I use UID over ID, as these last are duplicated when a single layer is in several groups loaded in the layertree. If I don't I'm not able to select the correct html element.

@llienher llienher self-assigned this Dec 13, 2019
@llienher llienher marked this pull request as ready for review December 17, 2019 11:39
@llienher llienher changed the title [WIP] Close associated popup submenu at layertree removal Cllose associated popup submenu at layertree removal Dec 17, 2019
@llienher llienher changed the title Cllose associated popup submenu at layertree removal Close associated popup submenu at layertree removal Dec 17, 2019
@llienher llienher merged commit 7e7271d into master Dec 19, 2019
@llienher llienher deleted the GSGMF-1161_layertree-ui-fix branch December 19, 2019 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants