quiten a warning, if apps return nothing

This commit is contained in:
Ralf Becker 2016-02-16 10:14:02 +00:00
parent 5bfe4ba48b
commit 6b33adcb7c
4 changed files with 44 additions and 39 deletions

View File

@ -710,6 +710,8 @@ foreach($files as $filename)
$widgets = $GLOBALS['egw']->hooks->process('etemplate2_register_widgets'); $widgets = $GLOBALS['egw']->hooks->process('etemplate2_register_widgets');
foreach($widgets as $app => $list) foreach($widgets as $app => $list)
{ {
if (is_array($list))
{
foreach($list as $class) foreach($list as $class)
{ {
try try
@ -721,4 +723,5 @@ foreach($widgets as $app => $list)
error_log($e->getMessage()); error_log($e->getMessage());
} }
} }
}
} }

View File

@ -2268,6 +2268,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
var settings = this.nextmatch.options.settings; var settings = this.nextmatch.options.settings;
this.div.prependTo(nm_div); this.div.prependTo(nm_div);
this.div.addClass('et2_toolbar'); // get toolbar styling
// Left & Right (& row) headers // Left & Right (& row) headers
this.headers = [ this.headers = [
@ -2279,6 +2280,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
// The rest of the header // The rest of the header
this.header_div = this.row_div = jQuery(document.createElement("div")) this.header_div = this.row_div = jQuery(document.createElement("div"))
.addClass("nextmatch_header_row") .addClass("nextmatch_header_row")
.addClass('et2_toolbar_actionlist') // get toolbar styling
.appendTo(this.div); .appendTo(this.div);
// Search // Search

View File

@ -438,10 +438,10 @@ var et2_searchbox = et2_textbox.extend(
{ {
var self = this; var self = this;
// search button indicator // search button indicator
this.button = et2_createWidget('button',{class:"et2_button_with_image"},this); this.button = et2_createWidget('button',{image: 'search', background_image: true/*class:"et2_button_with_image"*/},this);
this.button.onclick= function(){ this.button.onclick = function(){
self._show_hide(true); self._show_hide(true);
self.search.input.focus() self.search.input.focus();
}; };
this.div.prepend(this.button.getDOMNode()); this.div.prepend(this.button.getDOMNode());