From 461edf0c20c2dc5055714608abbcc8b6511317c0 Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Wed, 9 Aug 2017 14:26:47 +0100 Subject: [PATCH] Javascript loading improvements --- .../individual--foaf-person-2column.ftl | 16 ++++++---- .../individual--foaf-person-quickview.ftl | 16 ++++++---- .../individual/individual--foaf-person.ftl | 4 +-- .../freemarker/body/individual/individual.ftl | 6 ++-- .../individual-dept-active-grants.ftl | 2 +- .../individual/individual--foaf-person.ftl | 32 ++++++++++++------- .../tenderfoot/templates/page/page-home.ftl | 2 +- .../templates/individual--foaf-person.ftl | 4 +-- .../themes/wilma/templates/page-home.ftl | 2 +- 9 files changed, 48 insertions(+), 36 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/body/individual/individual--foaf-person-2column.ftl b/webapp/src/main/webapp/templates/freemarker/body/individual/individual--foaf-person-2column.ftl index 37012404..0cff8120 100644 --- a/webapp/src/main/webapp/templates/freemarker/body/individual/individual--foaf-person-2column.ftl +++ b/webapp/src/main/webapp/templates/freemarker/body/individual/individual--foaf-person-2column.ftl @@ -198,13 +198,15 @@ ${headScripts.add('', '')} -${scripts.add('', - '', - '', - '', - '', - '', - '')} +${scripts.add('', + '', + '', + '', + '', + '', + '', + '', + '')} ', '')} -${scripts.add('', - '', - '', - '', - '', - '', - '')} +${scripts.add('', + '', + '', + '', + '', + '', + '', + '', + '')} ')} -${scripts.add('')} +${scripts.add('')} +${scripts.add('')} <#-- First, check to see if profile page types are enabled. If not, get the 2 column template: diff --git a/webapp/src/main/webapp/templates/freemarker/body/individual/individual.ftl b/webapp/src/main/webapp/templates/freemarker/body/individual/individual.ftl index 2634a056..6e0d410e 100644 --- a/webapp/src/main/webapp/templates/freemarker/body/individual/individual.ftl +++ b/webapp/src/main/webapp/templates/freemarker/body/individual/individual.ftl @@ -43,6 +43,6 @@ var i18nStrings = { ${stylesheets.add('')} ${headScripts.add('')} -${scripts.add('')} -${scripts.add('')} -${scripts.add('')} +${scripts.add('')} +${scripts.add('')} +${scripts.add('')} diff --git a/webapp/src/main/webapp/templates/freemarker/body/partials/individual/individual-dept-active-grants.ftl b/webapp/src/main/webapp/templates/freemarker/body/partials/individual/individual-dept-active-grants.ftl index 971aba16..872e318c 100644 --- a/webapp/src/main/webapp/templates/freemarker/body/partials/individual/individual-dept-active-grants.ftl +++ b/webapp/src/main/webapp/templates/freemarker/body/partials/individual/individual-dept-active-grants.ftl @@ -35,5 +35,5 @@ ${stylesheets.add('')} -${scripts.add('')} +${scripts.add('')} diff --git a/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl b/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl index 9b212dcf..145748bb 100644 --- a/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl +++ b/webapp/src/main/webapp/themes/tenderfoot/templates/body/individual/individual--foaf-person.ftl @@ -162,17 +162,25 @@ }; -${stylesheets.add('', -'', -'', -'')} +${stylesheets.add( + '', + '', + '', + '' +)} -${headScripts.add('', -'', -'')} +${headScripts.add( + '', + '', + '' +)} -${scripts.add('', -'', -'', -'', -'')} +${scripts.add( + '', + '', + '', + '', + '', + '', + '' +)} diff --git a/webapp/src/main/webapp/themes/tenderfoot/templates/page/page-home.ftl b/webapp/src/main/webapp/themes/tenderfoot/templates/page/page-home.ftl index 6d1dda9c..5b8e920b 100644 --- a/webapp/src/main/webapp/themes/tenderfoot/templates/page/page-home.ftl +++ b/webapp/src/main/webapp/themes/tenderfoot/templates/page/page-home.ftl @@ -21,7 +21,7 @@ <#if geoFocusMapsEnabled > <#include "geoFocusMapScripts.ftl"> - + diff --git a/webapp/src/main/webapp/themes/wilma/templates/individual--foaf-person.ftl b/webapp/src/main/webapp/themes/wilma/templates/individual--foaf-person.ftl index 20ceb298..b01c531d 100644 --- a/webapp/src/main/webapp/themes/wilma/templates/individual--foaf-person.ftl +++ b/webapp/src/main/webapp/themes/wilma/templates/individual--foaf-person.ftl @@ -176,8 +176,8 @@ ${scripts.add('', '', '', - '', - '')} + '', + '')} +