From 1763380b13adf0fc49b747a158fa69ee517e050d Mon Sep 17 00:00:00 2001 From: hugodu69 Date: Fri, 28 Dec 2018 00:40:09 +0100 Subject: [PATCH] je n'arrive pas a recharger correctement les bons elements de la page --- javascript/insert.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/javascript/insert.js b/javascript/insert.js index 6cd55db..dd107a7 100644 --- a/javascript/insert.js +++ b/javascript/insert.js @@ -29,13 +29,10 @@ function loadContent(pageName) { function insert(e) { //get the name of the page after the # in the url -// var nameCompare = location.hash.slice(1); var pageName = e.target.hash.slice(1); - if (!document.getElementById("pageScript").src.includes(pageName)) { - titleColor(e); - loadContent(pageName); - }; + titleColor(e); + loadContent(pageName); } clickAction();