Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jun 2011 at 11:07 UTC
Updated:
4 Jan 2014 at 00:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
merlinofchaos commentedAre you sure that ctools_include('auto-submit') happened on the page where this happens?
It is possible that the auto-submit and the modal frame aren't happy together, because modal frame is taking over the click or something and they don't work well. It might take some effort to debug something like that.
Comment #2
greenrover33 commentedYes i didt include all nessesary
Comment #3
populist commentedI ran into this same problem and did some additional research. The behavior I see is that if I add the appropriate code to make the form autosubmit, it will autosubmit but will just return the JSOn in the browser. This is the same behavior if I use jQuery to either .click() or .trigger('mousedown') on the submit button.
However, if I manually click on the button in question it will handle the submit function correctly! My guess is there is some chaos magic present on the modal form submission likely injected by Drupal.behaviors.ZZCToolsModal but I don't know the right way to make it all work nicely together.
Comment #4
merlinofchaos commentedOkay, a little research shows us that this is a bug in the version of jquery with Drupal 7:
http://forum.jquery.com/topic/click-on-submit-button-doesn-t-trigger-for...
I'm trying to find a strategy to work around this bug.
One workaround would be to use jquery_update but I don't know what version of jquery the bug was actually fixed in at the moment. And there are issues with Drupal 7 and jquery 1.7.
Comment #5
merlinofchaos commentedOkay, so this patch appears to work around the bug for the modal, at least. I tested it in Chrome, Firefox and IE9 and it appears to be sane. My big question is whether or not this will be ocmpatible with later versions of jQuery, which I don't have easily handy.
Comment #7
populist commentedHere is a quick re-roll against Chaos Tools 1.0.
Comment #8
merlinofchaos commentedThe reroll in #7 didn't actually apply so I committed my original patch and pushed.