core-jgi/zkwebui/js/report.js

36 lines
1013 B
JavaScript
Raw Normal View History

function zoom(cmpid, column, value){
zkau.send({uuid: cmpid, cmd: 'onZoom', data: [column, value], ctl: true});
}
function drillAcross(cmpid, column, value){
zkau.send({uuid: cmpid, cmd: 'onDrillAcross', data: [column, value], ctl: true});
}
function drillDown(cmpid, column, value){
zkau.send({uuid: cmpid, cmd: 'onDrillDown', data: [column, value], ctl: true});
}
function showColumnMenu(e, columnName, row) {
var d = document.getElementById(columnName + "_" + row + "_d");
var posx = 0;
var posy = 0;
if (!e) var e = window.event;
if (e.pageX || e.pageY) {
posx = e.pageX;
posy = e.pageY;
}
else if (e.clientX || e.clientY) {
posx = e.clientX + document.body.scrollLeft
+ document.documentElement.scrollLeft;
posy = e.clientY + document.body.scrollTop
+ document.documentElement.scrollTop;
}
d.style.top = posy;
d.style.left = posx;
d.style.display = "block";
setTimeout("document.getElementById('" + columnName + "_" + row + "_d" + "').style.display='none'", 3000);
}