Bugzilla – Attachment 8025 Details for
Bug 7646
Printing w/o the SQL Code showing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Modified the template to have a JS link to change the print media class and launch a print dialog.
0001-Added-a-do-not-print-SQL-print-link-to-reports.patch (text/plain), 1.57 KB, created by
Shane Sammons
on 2012-03-06 03:28:02 UTC
(
hide
)
Description:
Modified the template to have a JS link to change the print media class and launch a print dialog.
Filename:
MIME Type:
Creator:
Shane Sammons
Created:
2012-03-06 03:28:02 UTC
Size:
1.57 KB
patch
obsolete
>From a8331ebede8a4b3ef0415dc122bff9e8f6650870 Mon Sep 17 00:00:00 2001 >From: Shane <shane.sammons@gmail.com> >Date: Mon, 5 Mar 2012 22:16:09 -0500 >Subject: [PATCH] Added a do not print SQL print link to reports >Content-Type: text/plain; charset="utf-8" > >--- > .../en/modules/reports/guided_reports_start.tt | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index caf27f1..2c86ce0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -19,6 +19,11 @@ > <style type="text/css"> > #sql { width: 90%; height: 9em;} > </style> >+<style type="text/css" media="print"> >+/* ### FIX ME, PUT ME IN MAIN CSS IF USED OFTEN! */ >+.noprint { >+display: none; >+} > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> > >@@ -493,6 +498,7 @@ canned reports and writing custom SQL reports.</p> > [% END %] > > [% IF ( execute ) %] >+<a href="javascript:window.print()" OnClick="document.getElementById('sql_output').className += ' noprint';" class="noprint">Print w/o SQL</a> > <h1>[% name %]</h1> > [% IF ( notes ) %]<p>[% notes %]</p>[% END %] > [% IF ( unlimited_total ) %]<p>Total number of rows matching the (unlimited) query is [% unlimited_total %].</p>[% END %] >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7646
:
8025
|
8106
|
8108
|
8109
|
8273
|
37779
|
37790
|
37926
|
37945
|
38043
|
41093