projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copyright and version fixes
[civicrm-core.git]
/
CRM
/
Core
/
Form
/
Date.php
diff --git
a/CRM/Core/Form/Date.php
b/CRM/Core/Form/Date.php
index 3c7196de812320b6430d34747e46e641b392b13d..66f25e183439c82a677b8e201b4ab13026e68ee9 100644
(file)
--- a/
CRM/Core/Form/Date.php
+++ b/
CRM/Core/Form/Date.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
4
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-196,7
+196,7
@@
Class CRM_Core_Form_Date {
/**
* This function is to build the date range - relative or absolute
*
/**
* This function is to build the date range - relative or absolute
*
- * @param
Object
$form the form object that we are operating on
+ * @param
CRM_Core_Form
$form the form object that we are operating on
* @param string $fieldName
* @param Array $selector array of option values to add
* @param integer $count
* @param string $fieldName
* @param Array $selector array of option values to add
* @param integer $count
@@
-212,8
+212,9
@@
Class CRM_Core_Form_Date {
$form->add('select',
"{$fieldName}_relative",
ts('Relative Date Range'),
$form->add('select',
"{$fieldName}_relative",
ts('Relative Date Range'),
- $selector,
- $required
+ $selector,
+ $required,
+ array('class' => 'crm-select2')
);
$form->addDateRange($fieldName, $from, $to, $fromLabel, $dateFormat, FALSE, $displayTime);
);
$form->addDateRange($fieldName, $from, $to, $fromLabel, $dateFormat, FALSE, $displayTime);