details: https://code.openbravo.com/erp/devel/pi/rev/e5af0079aa01
changeset: 14073:e5af0079aa01
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Mon Oct 24 12:34:40 2011 +0200
summary: fixed bug 16887: It is not possible to submit the Balance Sheet and
P&L report twice
Do not use _blank target to open the pdf file, this causes not to be possible
to open it
several times in chrome and opens a new blank tab. Using a new hidden iframe
so the pdf
file is directly downloaded without creating a new tab.
diffstat:
src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html | 7
+++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 2dfdc1649f36 -r e5af0079aa01
src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html
--- a/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html
Mon Oct 24 11:59:47 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html
Mon Oct 24 12:34:40 2011 +0200
@@ -187,7 +187,7 @@
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onload="onLoadDo();" onresize="onResizeDo();">
- <form method="post" action="GeneralAccountingReports.pdf" name="frmMain"
target="_blank" id="form">
+ <form method="post" action="GeneralAccountingReports.pdf" name="frmMain"
target="background_target" id="form">
<input type="hidden" name="Command" />
<table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
@@ -561,7 +561,7 @@
<button type="button"
id="buttonPDF"
class="ButtonLink"
- onclick="submitCommandForm('FIND', true, null,
'GeneralAccountingReports.pdf', '_blank');return false;"
+ onclick="submitCommandForm('FIND', true, null,
'GeneralAccountingReports.pdf', 'background_target');return false;"
onfocus="buttonEvent('onfocus', this);
window.status='Export Results to PDF Format'; return true;"
onblur="buttonEvent('onblur', this);"
onkeyup="buttonEvent('onkeyup', this);"
@@ -613,5 +613,8 @@
</tr>
</table>
</form>
+
+<iframe name="background_target" id="background_target" height="0" width="0"
style="display:none;"></iframe>
+
</body>
</html>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits