Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2011-10-24 16:17:02 +0400
committerMichal Čihař <mcihar@suse.cz>2011-10-24 16:17:02 +0400
commit663958b564bd96a3b8976894e1dce641bf740f52 (patch)
tree364fd58926c7403e54d8bdf562bc454b6766b8bc /sql.php
parent3dc06f4f704ce8ef49ddecf9a500796a7a41db47 (diff)
Use same logic for printing SQL results as elsewhere
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/sql.php b/sql.php
index 05b80b67d3..aa99c195da 100644
--- a/sql.php
+++ b/sql.php
@@ -990,19 +990,7 @@ $(document).ready(makeProfilingChart);
// Do print the page if required
if (isset($printview) && $printview == '1') {
- ?>
-<script type="text/javascript">
-//<![CDATA[
-// Do print the page
-window.onload = function()
-{
- if (typeof(window.print) != 'undefined') {
- window.print();
- }
-}
-//]]>
-</script>
- <?php
+ PMA_printButton();
} // end print case
if ($GLOBALS['is_ajax_request'] != true) {