mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
get some view parameter in js()
this fixes some php warnings
This commit is contained in:
parent
08831349dd
commit
911c7895d9
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue
Block a user