Active
Project:
AHAH helper
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2011 at 17:19 UTC
Updated:
27 Oct 2011 at 17:19 UTC
I made some AHAH form elements in my custom AHAH form. Everything works great, but I can't trigger AHAH change event on "date_select" element. (Nothing happens even when I put "date" or "date_popup" instead of "date_select"). If i made "select" element it works like a charm. Any thoughts? Is there any way to fix or work around this?
By the way, this is a great module s thank you for it.
$date = date("d-m-Y H:i:s");
$format = 'd-m-Y H:i:s';
$form['date'] = array(
'#weight' => '0',
'#type' => 'date_select',
'#default_value' => $date,
'#date_format' => $format,
'#date_label_position' => 'within',
'#date_timezone' => 'Europe/Belgrade',
'#date_year_range' => '-0:+0',
'#title' => t('Start time'),
'#ahah' => array(
'event' => 'change',
'path' => ahah_helper_path(array('playlist')),
'method' => 'replace',
'wrapper' => 'playlist-wrapper',
),
);