set page title
This commit is contained in:
@@ -70,12 +70,13 @@ function initPage(asHash) {
|
||||
self.tmp('$Map', $('#map'));
|
||||
self.tmp('updatable', true);
|
||||
self.tmp('out-of-data', false);
|
||||
toggleFeedPanel(!isMobile(), false);
|
||||
oSpot.onResize();
|
||||
self.tmp('tile_api', getWmtsApiUrl('{id}', '{y}', '{x}', '{z}'));
|
||||
self.tmp('markers', 'object');
|
||||
self.tmp('marker_size', {width: 32, height: 32});
|
||||
|
||||
toggleFeedPanel(!isMobile());
|
||||
oSpot.onResize();
|
||||
|
||||
//Lightbox options
|
||||
lightbox.option({
|
||||
alwaysShowNavOnTouchDevices: true,
|
||||
@@ -114,6 +115,9 @@ function initProject(sProjectCodeName){
|
||||
self.tmp('first_exec', false);
|
||||
self.vars('project', self.vars(['projects', sProjectCodeName]));
|
||||
|
||||
//Page Title
|
||||
self.setPageTitle(oSpot.vars(['project', 'name']));
|
||||
|
||||
//Timezone difference notice
|
||||
var bSameTZ = (oSpot.consts.site_timezone == oSpot.vars(['project', 'timezone']));
|
||||
self.tmp('site_tz_notice', bSameTZ?'':' ('+oSpot.consts.site_timezone_desc+')');
|
||||
|
||||
Reference in New Issue
Block a user