Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2011 at 17:39 UTC
Updated:
3 Feb 2012 at 23:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedHm. It looks like the click behavior is bound when the frame is rendered, not when the content is rendered. It looks like it would be easy enough to add a standard modal close class, though.
From javascript, I believe your code would look something like this in a behavior:
We could put that (or a working version in case I've typo'd something) in the modal's behavior and then in theory anyone could use it, but something like that could also go in any module's behavior to bind to a button specifically.
Comment #2
dave reidCool. This works as expected. Here's a patch against 7.x-1.x and 6.x-1.x.
Comment #3
dave reidMissed the context parameter in the D7 patch.
Comment #4
merlinofchaos commentedCommitted to both branches. Thanks for turning this into a patch!