summaryrefslogtreecommitdiff
path: root/timelinejs.tpl.php
diff options
context:
space:
mode:
authorroot <root@socioambiental.org>2013-10-15 11:38:54 -0300
committerroot <root@socioambiental.org>2013-10-15 11:38:54 -0300
commite2a1b968d674d36edca7d8ccda6e3ad48b57e34d (patch)
tree6926207115efcacd7a47e6a8cd77bee7825518fb /timelinejs.tpl.php
parent6679d0460fc88847c492dd13761180fcc1377b51 (diff)
downloadtimelinejs-e2a1b968d674d36edca7d8ccda6e3ad48b57e34d.tar.gz
timelinejs-e2a1b968d674d36edca7d8ccda6e3ad48b57e34d.tar.bz2
Adding MakeMenuLinksOpenInNewWindow()
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 -->