Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 00:52 UTC
Updated:
19 Oct 2009 at 01:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
fenstratThis is based on #568578: Add ajax command for client side redirect
ps. Is there a way to extend the ajax commands without directly patching ctools itself? Writing commands like yourmodule_modal_command_submitform is easy enough, but extending command functions in Drupal.CTools.AJAX.commands must be done after ajax-responder.js is loaded otherwise any additions are clobbered. This is tricky given drupal_add_js inability to set order/weight in d6. Am I missing something simple here?
Comment #2
merlinofchaos commentedAS long as you do ctools_add_js('ajax-responder') right before your own drupal_add_js you should be guaranteed that it will come before yours.
That said as part of this I went ahead and reconfigured the system so that it doesn't matter which comes first. Also, I renamed it from 'submitform' to just 'submit' since Drupal coding standard dislikes smashing two words together without a separator.
Comment #3
fenstratFantastic, thank for that Earl.