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',
'parent_id' => 'parent_id',
'favorites' => true,
'placeholder_actions' => array('add')
'placeholder_actions' => array('add'),
'searchbox' => array('overlay' => true)
);
if ($do_email)

View File

@ -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()});
},

View File

@ -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."
}
},