Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had the need to react on blur, I had an auto complete textfield that I want to update a different dive (image preview) on.
Attached is the patch.
You just add the "ctools-use-ajax-blur".
I can't take to much credit as I just took this issue (#464252: ajax - select on change) and made a few small modifications. Leads to to thinks there would be a wild card "ctools-use-ajax-*" that reacts based upon the event in the class.
Until then, I hope this makes someone else happy.
Neil
Comment | File | Size | Author |
---|---|---|---|
ctools-blur.patch | 2.5 KB | indytechcook |
Comments
Comment #1
indytechcook CreditAttribution: indytechcook commentedchange status to needs review.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedHmm. Yeah, I agree this suggests we need some better way to generalize this, because we could end up really doing a lot of stuff.
Perhaps we should backport some of ajax.js from Drupal 7 and use that method, which lets you specify the event and some other goodies via settings. That might be much more effective, ultimately.
Comment #3
japerryClosing this issue as outdated as Drupal 6 ctools is not supported. If this issue is relevant for Drupal 7, feel free to re-open and mark for Drupal 7 (or 8)