summaryrefslogtreecommitdiff
path: root/timelinejs.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'timelinejs.tpl.php')
-rw-r--r--timelinejs.tpl.php9
1 files changed, 9 insertions, 0 deletions
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: "<?php print $font; ?>",
lang: "<?php print $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();
</script>
<script type="text/javascript" src="/<?php print $library_path; ?>/compiled/js/storyjs-embed.js"></script>
<!-- END Timeline Embed -->