get some view parameter in js()

this fixes some php warnings
This commit is contained in:
Uwe Steinmann 2016-02-08 10:40:29 +01:00
parent 08831349dd
commit 911c7895d9

View File

@ -126,6 +126,22 @@ class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style {
} /* }}} */ } /* }}} */
function js() { /* {{{ */ 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'); header('Content-Type: application/javascript');
?> ?>
$(document).ready(function () { $(document).ready(function () {