From aa5b120946b7f03b58c04a093e4a4d98e7279781 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Thu, 10 Jan 2019 21:42:11 +0800 Subject: [PATCH] IDEMPIERE-3901 Zooming from HTML report doesn't work on firefox (AP2-851) --- org.adempiere.ui.zk/js/report.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/org.adempiere.ui.zk/js/report.js b/org.adempiere.ui.zk/js/report.js index c5226f1e84..fff9b996fb 100644 --- a/org.adempiere.ui.zk/js/report.js +++ b/org.adempiere.ui.zk/js/report.js @@ -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);