From 45e7142b0939a81de8bf638197ff8802fa136956 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 29 Feb 2016 14:19:33 +0000 Subject: [PATCH] Fix javascript error on serachbox Remove overlay option from addressbook --- addressbook/inc/class.addressbook_ui.inc.php | 3 +-- etemplate/js/et2_widget_textbox.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 620720f70a..3b93b6a3ee 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -239,8 +239,7 @@ class addressbook_ui extends addressbook_bo 'is_parent' => 'org_count', 'parent_id' => 'parent_id', 'favorites' => true, - 'placeholder_actions' => array('add'), - 'searchbox' => array('overlay' => true) + 'placeholder_actions' => array('add') ); if ($do_email) diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js index 11eac3f5c9..98f4c3c087 100644 --- a/etemplate/js/et2_widget_textbox.js +++ b/etemplate/js/et2_widget_textbox.js @@ -483,7 +483,7 @@ var et2_searchbox = et2_textbox.extend( this.search.input.on({ keyup:function(event) { - self.clear.toggle(self.get_value() !='' || !this.options.fix); + self.clear.toggle(self.get_value() !='' || !self.options.fix); if(event.which == 27) // Escape { // Excape clears search