From 911c7895d99ecacf397cfcd26751259609a8e942 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 8 Feb 2016 10:40:29 +0100 Subject: [PATCH] get some view parameter in js() this fixes some php warnings --- views/bootstrap/class.Timeline.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/views/bootstrap/class.Timeline.php b/views/bootstrap/class.Timeline.php index 59c658011..7aaad57ef 100644 --- a/views/bootstrap/class.Timeline.php +++ b/views/bootstrap/class.Timeline.php @@ -126,6 +126,22 @@ class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style { } /* }}} */ function js() { /* {{{ */ + $fromdate = $this->params['fromdate']; + $todate = $this->params['todate']; + $skip = $this->params['skip']; + + if($fromdate) { + $from = makeTsFromLongDate($fromdate.' 00:00:00'); + } else { + $from = time()-7*86400; + } + + if($todate) { + $to = makeTsFromLongDate($todate.' 23:59:59'); + } else { + $to = time(); + } + header('Content-Type: application/javascript'); ?> $(document).ready(function () {