Enable overlay attribute for addressbook's searchbox

This commit is contained in:
Hadi Nategh 2016-02-18 12:58:14 +00:00
parent 5612a16c76
commit d5f0727b2e
3 changed files with 5 additions and 4 deletions

View File

@ -239,7 +239,8 @@ class addressbook_ui extends addressbook_bo
'is_parent' => 'org_count', 'is_parent' => 'org_count',
'parent_id' => 'parent_id', 'parent_id' => 'parent_id',
'favorites' => true, 'favorites' => true,
'placeholder_actions' => array('add') 'placeholder_actions' => array('add'),
'searchbox' => array('overlay' => true)
); );
if ($do_email) if ($do_email)

View File

@ -2292,7 +2292,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
// searchbox widget options // searchbox widget options
var searchbox_options = { var searchbox_options = {
id:"search", 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(){ onchange:function(){
self.nextmatch.applyFilters({search: this.get_value()}); self.nextmatch.applyFilters({search: this.get_value()});
}, },

View File

@ -421,8 +421,8 @@ var et2_searchbox = et2_textbox.extend(
overlay:{ overlay:{
name:"Overlay searchbox", name:"Overlay searchbox",
type:"boolean", type:"boolean",
default: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 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 false."
} }
}, },