summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/search.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-07 14:21:25 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-07 14:21:25 +0100
commit83f7077ec930952cdc9cfc8982b80cd4dad06b5f (patch)
tree8bd24c93de5d1dbc8d356aa29aea0c73cd518619 /program/steps/addressbook/search.inc
parenta5b8ef99d4e26bdb00e9b74221f107767a084a6e (diff)
Fix searching by date in address book (#1488888)
Diffstat (limited to 'program/steps/addressbook/search.inc')
-rw-r--r--program/steps/addressbook/search.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc
index 851325070..bbd9b9a76 100644
--- a/program/steps/addressbook/search.inc
+++ b/program/steps/addressbook/search.inc
@@ -300,9 +300,13 @@ function rcmail_contact_search_form($attrib)
$label = isset($colprop['label']) ? $colprop['label'] : rcube_label($col);
$category = $colprop['category'] ? $colprop['category'] : 'other';
- if ($ftype == 'text')
+ // load jquery UI datepicker for date fields
+ if ($colprop['type'] == 'date')
+ $colprop['class'] .= ($colprop['class'] ? ' ' : '') . 'datepicker';
+ else if ($ftype == 'text')
$colprop['size'] = $i_size;
+
$content = html::div('row', html::div('contactfieldlabel label', Q($label))
. html::div('contactfieldcontent', rcmail_get_edit_field('search_'.$col, '', $colprop, $ftype)));