diff options
author | Pim van den Berg | 2014-12-13 13:52:46 +0100 |
---|---|---|
committer | Pim van den Berg | 2014-12-13 13:52:46 +0100 |
commit | f57bb64e8ef7b5effa8cc5962ef75a426460cd6c (patch) | |
tree | a9465c2291da0d98b040c0d510f34b6cb3b567cf /inc/html.inc.php | |
parent | dashboard: timeago: show seconds, refresh every 5 seconds (diff) | |
download | apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.zip apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.tar.gz apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.tar.bz2 apt-panopticon_cgp-f57bb64e8ef7b5effa8cc5962ef75a426460cd6c.tar.xz |
dashboard: showtime: load jquery + timeago.js when config is set
Diffstat (limited to '')
-rw-r--r-- | inc/html.inc.php | 8 |
1 files changed, 7 insertions, 1 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; | |||
46 | EOT; | 46 | EOT; |
47 | } | 47 | } |
48 | 48 | ||
49 | echo <<<EOT | 49 | if ($CONFIG['showtime']) { |
50 | echo <<<EOT | ||
50 | <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script> | 51 | <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script> |
51 | <script type="text/javascript" src="{$html_weburl}js/jquery.timeago.js"></script> | 52 | <script type="text/javascript" src="{$html_weburl}js/jquery.timeago.js"></script> |
53 | |||
54 | EOT; | ||
55 | } | ||
56 | |||
57 | echo <<<EOT | ||
52 | </head> | 58 | </head> |
53 | <body> | 59 | <body> |
54 | 60 | ||