Hello there,
I'm using ng_lightbox with colorbox and colorbox_load
in order to create an experience where all 3 user form (login / register / reset pass) are shown in a popup
initial setup works fine, to open the 3 links from any page in a popup
the problem I have is when I wish to cross-link between the 3 forms
for example, login form has a link to register, and vice-versa
the link in the popup has all the attributes necessary, but it won't open in a popup
the
// Bind Ajax behaviors to all items showing the class.
$('.use-ajax').once('ajax').each(function () {
from core/misc/ajax.js is not triggered for the content loaded via ajax
I'm not sure where to look for the problem
suspecting something might be missing from src/OpenCommand.php
any help will be much appreciated
thanks,
Reszli
Comments
Comment #2
mariancalinro commentedIt just needed a call to Drupal.attachBehaviors() on the loaded content.
Patch attached.
Comment #3
mariancalinro commentedPatch from #2 was wrong.
Comment #4
sam152 commented#3 makes sense to me.
Comment #5
sam152 commented