I just tried out embedding a token_tree in a module admin page and, while it was pretty simple and awesome, I wasn't able to click_insert tokens like it said at the top of the table.
I then realized that I didn't have JS on, which is why it didn't work (with JS it works beautifully), but it was weird that the table told me it would work.
Attached patch adds the 'element-hidden' class to the caption and removes that via JS, so that the caption is only shown with JS on. It then leaves a useless < span > laying around, but I'm not sure whether/how it's possible to add attributes to the caption itself.
Comment | File | Size | Author |
---|---|---|---|
#3 | token-insert_click_nojs-1067238-3.patch | 906 bytes | Andrew Answer |
|
Comments
Comment #1
tstoecklerfixing title, assigning to me, and bump.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 8 year old patch to token.pages.inc does not apply to the latest token 7.x-1.x-dev and if still applicable needs reroll.
Comment #3
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch re-rolled.