summaryrefslogtreecommitdiff
path: root/timelinejs.module
diff options
context:
space:
mode:
Diffstat (limited to 'timelinejs.module')
-rw-r--r--timelinejs.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/timelinejs.module b/timelinejs.module
index 19cc0cb..ce48632 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -184,6 +184,7 @@ function timelinejs_widget($nid = NULL, $width = '960px', $height = '500px') {
$output .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
$output .= '<html style="height: 100%;"><head>';
$output .= '<title>'. t('Timeline: @title', array('@title' => $node->title)) .'</title>';
+ $output .= '<script type="text/javascript">timelineWidget = true;</script>';
$output .= '</head><body class="widget timeline-widget" style="height: 100%; margin: 0px;">';
$output .= timelinejs($nid, $width, $height);
$output .= '</body></html>';