mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Make sure headers is defined, even if no templates specified
This commit is contained in:
parent
f17860431a
commit
f88776416c
@ -834,11 +834,11 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader, {
|
||||
|
||||
// Left & Right headers
|
||||
// TODO: Not quite right. Should they even go inside the nm?
|
||||
this.headers = [];
|
||||
if(settings.header_left || settings.header_right)
|
||||
{
|
||||
var headers = [settings.header_left, settings.header_right];
|
||||
this.header_div = jQuery(document.createElement("div")).prependTo(nm_div);
|
||||
this.headers = [];
|
||||
for(var i = 0; i < headers.length; i++) {
|
||||
if(headers[i]) {
|
||||
// Load the template
|
||||
|
Loading…
Reference in New Issue
Block a user