From e2a1b968d674d36edca7d8ccda6e3ad48b57e34d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Oct 2013 11:38:54 -0300 Subject: Adding MakeMenuLinksOpenInNewWindow() --- timelinejs.tpl.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/timelinejs.tpl.php b/timelinejs.tpl.php index eeb2f97..e3e1175 100644 --- a/timelinejs.tpl.php +++ b/timelinejs.tpl.php @@ -12,6 +12,15 @@ font: "", lang: "" } + +function MakeMenuLinksOpenInNewWindow() { + var links = document.getElementsByTagName("a"); + for (var i = 0; i < links.length; i++) { + if (links[i].href != "http://widgets.socioambiental.org/") + links[i].target = "_parent"; + } +} +MakeMenuLinksOpenInNewWindow(); -- cgit v1.2.3