From d5f0727b2e5b6184e345c608368a4044ff081516 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 18 Feb 2016 12:58:14 +0000 Subject: [PATCH] Enable overlay attribute for addressbook's searchbox --- addressbook/inc/class.addressbook_ui.inc.php | 3 ++- etemplate/js/et2_extension_nextmatch.js | 2 +- etemplate/js/et2_widget_textbox.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 3b93b6a3ee..620720f70a 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -239,7 +239,8 @@ class addressbook_ui extends addressbook_bo 'is_parent' => 'org_count', 'parent_id' => 'parent_id', 'favorites' => true, - 'placeholder_actions' => array('add') + 'placeholder_actions' => array('add'), + 'searchbox' => array('overlay' => true) ); if ($do_email) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 12cad9bcce..cdd9dce4b4 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -2292,7 +2292,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader, // searchbox widget options var searchbox_options = { id:"search", - overlay:(typeof settings.searchbox != 'undefined' && typeof settings.searchbox.overlay != 'undefined')?settings.searchbox.overlay:true, + overlay:(typeof settings.searchbox != 'undefined' && typeof settings.searchbox.overlay != 'undefined')?settings.searchbox.overlay:false, onchange:function(){ self.nextmatch.applyFilters({search: this.get_value()}); }, diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js index b5177e988a..6da387e8cc 100644 --- a/etemplate/js/et2_widget_textbox.js +++ b/etemplate/js/et2_widget_textbox.js @@ -421,8 +421,8 @@ var et2_searchbox = et2_textbox.extend( overlay:{ name:"Overlay searchbox", type:"boolean", - default:true, - description:"Define wheter the searchbox overlays while it's open (true) or stay as solid box infront of the search button (false). Default is true." + default:false, + description:"Define wheter the searchbox overlays while it's open (true) or stay as solid box infront of the search button (false). Default is false." } },