IDEMPIERE-3901 Zooming from HTML report doesn't work on firefox (AP2-851)

This commit is contained in:
Elaine Tan 2019-01-10 21:42:11 +08:00
parent ea92f8a29d
commit aa5b120946
1 changed files with 3 additions and 7 deletions

View File

@ -40,7 +40,7 @@ function showColumnMenu(e, columnName, row) {
d.style.left = posx;
d.style.display = "block";
setTimeout("getMenu ().style.display='none'", 3000);
setTimeout("getMenu().style.display='none'", 3000);
}
var contextMenu;
@ -70,9 +70,7 @@ function getMenu (componentId, foreignColumnName, value){
href.style.textDecoration = "none";
href.style.verticalAlign = "middle";
href.href = "javascript:void(0)";
href.setAttribute("onclick", "parent.zoom(contextMenu.getAttribute ('componentId'), " +
"contextMenu.getAttribute ('foreignColumnName'), " +
"contextMenu.getAttribute ('value'))");
href.setAttribute("onclick", "parent.zoom('" + componentId + "','" + foreignColumnName + "','" + value + "')");
windowMenu.appendChild(href);
menu.appendChild(windowMenu);
@ -96,9 +94,7 @@ function getMenu (componentId, foreignColumnName, value){
reportHref.style.textDecoration = "none";
reportHref.style.fontSize = "11px";
reportHref.style.verticalAlign = "middle";
reportHref.setAttribute("onclick", "parent.drillDown(contextMenu.getAttribute ('componentId'), " +
"contextMenu.getAttribute ('foreignColumnName'), " +
"contextMenu.getAttribute ('value'))");
reportHref.setAttribute("onclick", "parent.drillDown('" + componentId + "','" + foreignColumnName + "','" + value + "')");
report.appendChild(reportHref);
menu.appendChild(report);