Commit 568a9432 authored by PkSM3's avatar PkSM3

[UPDATE] menu.html OK

parent 7d1941cc
......@@ -303,14 +303,9 @@ function Main_test( Data , SearchFilter ) {
oldest = t0;
latest = t1;
console.clear()
console.log(oldest)
console.log(latest)
TheBuffer = [new Date(t0[0],t0[1]-1,t0[2]), new Date(t1[0],t1[1]-1,t1[2] ) ];
TheBuffer[0] = new Date(TheBuffer[0].setDate(TheBuffer[0].getDate()-1) );
TheBuffer[1] = new Date(TheBuffer[1].setDate(TheBuffer[1].getDate()+1) );
console.log(TheBuffer[0])
console.log(TheBuffer[1])
var arrayd3 = []
for(var e in Data) {
......
......@@ -24,28 +24,24 @@ var latest,oldest;
var TheBuffer = false
var PossibleActions = []
var PossibleActions = [
{
"id":"to_delete",
"name": "Delete",
"color":"red"
},
// {
// "id":"to_keep",
// "name": "Keep",
// "color":"green"
// },
// {
// "id":"to_group",
// "name": "Group",
// "color":"blue"
// }
]
var action1 = {
"id":"to_delete",
"name": "Delete",
"color":"red"
}
// var action2 = {
// "id":"to_keep",
// "name": "Keep",
// "color":"green"
// }
// var action3 = {
// "id":"to_group",
// "name": "Group",
// "color":"blue"
// }
PossibleActions.push(action1)
// PossibleActions.push(action2)
// PossibleActions.push(action3)
var FlagsBuffer = {}
for(var i in PossibleActions) {
......
......@@ -118,7 +118,11 @@
<script type="text/javascript">
function gotoexplorer(elem) {
var url_ = $(elem).data("url")
if (TheBuffer==false)
return window.open(url_,'_blank');
var current_timerange = TheBuffer
var time_limits = [new Date(oldest[0],oldest[1]-1,oldest[2]), new Date(latest[0],latest[1]-1,latest[2] ) ];
time_limits[0] = new Date(time_limits[0].setDate(time_limits[0].getDate()-1) );
......@@ -133,7 +137,8 @@
url_ += "&start=" + start_ + "&end="+end_;
// url_ += "&start=" + start__.getFullYear() + "&end="+end__.getFullYear();
}
window.open(url_,'_blank');
return window.open(url_,'_blank');
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment