Closed (won't fix)
Project:
Views Date Range Filter
Version:
5.x-1.7
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2008 at 21:32 UTC
Updated:
3 Feb 2013 at 16:28 UTC
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
Comment #1
marojenieva commentedI 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
Comment #2
pomliane commentedThis 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.