Needs review
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 20:44 UTC
Updated:
10 Aug 2011 at 21:23 UTC
I tried using ctools auto-submit on a date popup field I have, but it doesn't appear to work.
How could I get this to work or add support for it?
Here is my code:
function jump_to_date_form($edit = null) {
ctools_add_js('auto-submit');
$form['date_from'] = array(
'#title' => t('Go to'),
'#type' => 'date_popup',
'#date_format' => 'Y-d-m',
'#description' => t(''),
'#attributes' => array('class' => 'ctools-auto-submit'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Go'),
'#attributes' => array('class' => 'ctools-use-ajax ctools-auto-submit-click'),
);
return $form;
Basically I'm trying to implement a very basic "jump to date" button.
Comments
Comment #1
gthing commentedI have added this code:
What are the chances of getting it reviewed and added to the next 6.x release? Also, is there any reason to use click() over submit()?