mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-18 23:51:20 +00:00
turn off selectable items in timeline
This commit is contained in:
parent
cb4c6a5dbb
commit
88d973f496
|
@ -2028,7 +2028,7 @@ mayscript>
|
||||||
data = [
|
data = [
|
||||||
<?php
|
<?php
|
||||||
foreach($timeline as $item) {
|
foreach($timeline as $item) {
|
||||||
echo "{'start': new Date('".$item['date']."'), 'content': '".$item['msg']."'},";
|
echo "{'start': new Date('".$item['date']."'), 'content': '".$item['msg']."'},\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
/* {
|
/* {
|
||||||
|
@ -2040,19 +2040,19 @@ mayscript>
|
||||||
// specify options
|
// specify options
|
||||||
var options = {
|
var options = {
|
||||||
'width': '100%',
|
'width': '100%',
|
||||||
'_height': '<?= $height ?>px',
|
|
||||||
'height': '100%',
|
'height': '100%',
|
||||||
<?php
|
<?php
|
||||||
if($start) {
|
if($start) {
|
||||||
$tmp = explode('-', $start);
|
$tmp = explode('-', $start);
|
||||||
echo "'min': new Date(".$tmp[0].", ".($tmp[1]-1).", ".$tmp[2]."),";
|
echo "\t\t\t'min': new Date(".$tmp[0].", ".($tmp[1]-1).", ".$tmp[2]."),\n";
|
||||||
}
|
}
|
||||||
if($end) {
|
if($end) {
|
||||||
$tmp = explode('-', $end);
|
$tmp = explode('-', $end);
|
||||||
echo "'max': new Date(".$tmp[0].", ".($tmp[1]-1).", ".$tmp[2]."),";
|
echo "'\t\t\tmax': new Date(".$tmp[0].", ".($tmp[1]-1).", ".$tmp[2]."),\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
'editable': false, // enable dragging and editing events
|
'_editable': false,
|
||||||
|
'selectable': false,
|
||||||
'style': 'box',
|
'style': 'box',
|
||||||
'locale': 'de_DE'
|
'locale': 'de_DE'
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user