Really handy module - thanks for building it.
In js/modal_forms_contact.js, the selector used for converting the links is a[href*='/contact']
On my site I have the contact form in a block added to a page with the path contact-us.
This gets picked up by the jQuery selector, although I only want it to fire when the link is to the actual contact form itself, so I've changed the selector to use a[href='/contact']
I'm wondering if it might make more sense to use a[href$='/contact'] to cover cases where the drupal install isn't in the domain's root directory, e.g. mydomain.com/drupal/contact
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | modal_forms_contact_selector.patch | 536 bytes | malcomio |
Comments
Comment #1
malcomio commentedComment #2
frjo commentedThis is to handle installations of drupal in a subfolder.
If there is a lot of demand for this I will reconsider.