With reference to my previous question, http://drupal.org/node/232068, is there some way to use some CSS or some other code to disable the input box so that only jscalendar can enter the dates there.

That would be a quick and foolproof solution to the problem.

Comments

marojenieva’s picture

I would solution as follows: in the form_alter

if ($form_id == 'views_filters')
{
if($form['#view_name'] == 'nameyourview')
{
$form['filter1']['date1']['#attributes'] = Array ( 'title' => 'YYYY-MM-DD, today, yesterday, today-7, today-2M, today-1Y',
'class' => jscalendar,
'readonly' => 'readonly' );
$form['filter1']['date2']['#attributes'] = Array ( 'title' => 'YYYY-MM-DD, today, yesterday, today-7, today-2M, today-1Y',
'class' => jscalendar,
'readonly' => 'readonly' );
}
}

Bye

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Views Date Range Filter is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.