summaryrefslogtreecommitdiff
path: root/program/js
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/js
parenta5b8ef99d4e26bdb00e9b74221f107767a084a6e (diff)
Fix searching by date in address book (#1488888)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 5b8c2cd2f..c627983f4 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -361,7 +361,7 @@ function rcube_webmail()
if (this.gui_objects.editform) {
this.enable_command('save', true);
- if (this.env.action == 'add' || this.env.action == 'edit')
+ if (this.env.action == 'add' || this.env.action == 'edit' || this.env.action == 'search')
this.init_contact_form();
}
@@ -4396,10 +4396,11 @@ function rcube_webmail()
{
var ref = this, col;
- this.set_photo_actions($('#ff_photo').val());
-
- for (col in this.env.coltypes)
- this.init_edit_field(col, null);
+ if (this.env.coltypes) {
+ this.set_photo_actions($('#ff_photo').val());
+ for (col in this.env.coltypes)
+ this.init_edit_field(col, null);
+ }
$('.contactfieldgroup .row a.deletebutton').click(function() {
ref.delete_edit_field(this);