Skip to content
Permalink
Browse files

Fix with web and client window title, add optional portal title

  • Loading branch information
uprel committed Nov 22, 2019
1 parent 48f7a67 commit 0357283a2e9cd889f7a0992aebce1a5aef155212
Showing with 5 additions and 3 deletions.
  1. +2 −2 client/site/js/WebgisInit_functions.js
  2. +1 −0 client_common/settings-template.js
  3. +2 −1 client_mobile/src/gui.js
@@ -257,7 +257,7 @@ function postLoading() {
// if (title in projectTitles) {
// title = projectTitles[title];
// }
document.title = titleBarText;
document.title = Eqwc.settings.gisPortalTitle ? titleBarText + ' | ' + Eqwc.settings.gisPortalTitle : titleBarText;

// set header logo and link
if (headerLogoLink > '') {
@@ -277,7 +277,7 @@ function postLoading() {
var paddingTop = (headerLogoHeight - 18) / 2;
Ext.get('panel_header_title').setStyle('padding-top', paddingTop + 'px');
}
Ext.get('panel_header_title').update(document.title);
Ext.get('panel_header_title').update(titleBarText);

//user
// adjust position
@@ -101,6 +101,7 @@ Eqwc.settings.symbolizersHighLightLayer = {
};
Eqwc.settings.useGisPortal = false;
Eqwc.settings.gisPortalRoot = '/gisportal/index.php/';
Eqwc.settings.gisPortalTitle = '';
Eqwc.settings.mailServiceUrl = Eqwc.settings.gisPortalRoot + 'mail/send';
Eqwc.settings.gisPortalProfile = Eqwc.settings.gisPortalRoot + 'profile';
Eqwc.settings.mobileUseTiledWMS = false;
@@ -955,7 +955,8 @@ $(document).bind('pageinit', function() {
});

Gui.updateTranslations = function() {
document.title = I18n.title;
var titleBarText = projectData.title;
document.title = Eqwc.settings.gisPortalTitle ? titleBarText + ' | ' + Eqwc.settings.gisPortalTitle : titleBarText;

$('#panelSearch b').html(I18n.search.header);
$('#panelSearch #searchResults b').html(I18n.search.results);

0 comments on commit 0357283

Please sign in to comment.
You can’t perform that action at this time.