I have added the flag bookmark and have it configured to use the AJAX link type. Each time I click the link, the ajax works to add/remove the link from bookmarks, but it also inserts and extra div each time, so, multiple clicks nests the link deeper and deeper within divs. See the attached screenshot of browser inspector.

CommentFileSizeAuthor
flag-extra-divs.png198.53 KBnrackleff
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nrackleff created an issue. See original summary.

nrackleff’s picture

Issue summary: View changes
maticb’s picture

I cannot reproduce this, can you add more details about your setup? Could it be the "theme debug" that you're using, as seen on your screenshot?

nrackleff’s picture

That is a good question. I will turn debug off and let you know what I find out.

socketwench’s picture

Issue summary: View changes

Any progress with the theme debug, @nrackleff? I seem to remember the debug template adds a div....

nrackleff’s picture

I got sidetracked today and didn’t have time to check. I will try again tomorrow.

socketwench’s picture

KarimBou’s picture

It seems this isn't due to the flag module by itself, empty div are added (wrapped) for any ajax query such as search filters for instance.

idebr’s picture