From f57bb64e8ef7b5effa8cc5962ef75a426460cd6c Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 13 Dec 2014 13:52:46 +0100 Subject: dashboard: showtime: load jquery + timeago.js when config is set --- inc/html.inc.php | 8 +++++++- index.php | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/inc/html.inc.php b/inc/html.inc.php index 5bf0ff0..42b05ed 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -46,9 +46,15 @@ EOT; EOT; } -echo << + +EOT; + } + +echo << diff --git a/index.php b/index.php index 9c2319b..eb897ae 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,8 @@ if ($uhosts) { host_summary('uncategorized', $uhosts); } -echo << jQuery(document).ready(function() { jQuery("time.timeago").timeago(); @@ -34,5 +35,6 @@ jQuery(document).ready(function() { EOT; +} html_end(); -- cgit v1.1