forked from extern/egroupware
Add a fallback site title to avoid showing undefined as title
This commit is contained in:
parent
163c87db82
commit
72bc17abf7
@ -1003,7 +1003,8 @@ var fw_base = (function(){ "use strict"; return Class.extend(
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.tabsUi.setAppHeader(this.activeApp.app_header);
|
this.tabsUi.setAppHeader(this.activeApp.app_header);
|
||||||
var default_title = egw.config('site_title', 'phpgwapi') + ' ['+this.activeApp.displayName+']';
|
var default_title = (egw.config('site_title', 'phpgwapi') ? egw.config('site_title', 'phpgwapi') : "EGroupware")
|
||||||
|
+ ' ['+this.activeApp.displayName+']';;
|
||||||
document.title = this.activeApp.website_title || default_title;
|
document.title = this.activeApp.website_title || default_title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user