Make javascript work on more browsers than MSIE.

This commit is contained in:
Michal Čihař
2003-04-10 16:33:16 +00:00
parent 5e95ec6944
commit 2116431bd3
2 changed files with 4 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ $Source$
libraries/display_tbl.lib.php3, libraries/get_foreign.lib.php3: Get row
count by SHOW TABLE STATUS, and by SELECT COUNT(*) only for small
(<20000 rows) tables (RFE #708533).
* tbl_printview.php3: Make javascript work on more browsers than MSIE.
2003-04-09 Michal Cihar <nijel@users.sourceforge.net>
* libraries/build_dump.lib.php3: Fixed undefined index warnings in LaTeX

View File

@@ -625,17 +625,17 @@ echo "\n";
<!--
function printPage()
{
document.all.print.style.visibility = 'hidden';
document.getElementById('print').style.visibility = 'hidden';
// Do print the page
if (typeof(window.print) != 'undefined') {
window.print();
}
document.all.print.style.visibility = '';
document.getElementById('print').style.visibility = '';
}
//-->
</script>
<?php
echo '<br /><br />&nbsp;<input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="Print" onclick="printPage()">' . "\n";
echo '<br /><br />&nbsp;<input type="button" style="visibility: ; width: 100px; height: 25px" id="print" value="Print" onclick="printPage()">' . "\n";
require('./footer.inc.php3');
?>