Bugzilla – Attachment 50535 Details for
Bug 16218
printfeercpt.tt (and others) does not include jQuery
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF]Bug 16218: printfeercpt.tt (and others) does not include jQuery
SIGNED-OFFBug-16218-printfeercpttt-and-others-does.patch (text/plain), 4.90 KB, created by
Héctor Eduardo Castro Avalos
on 2016-04-21 17:57:03 UTC
(
hide
)
Description:
[SIGNED-OFF]Bug 16218: printfeercpt.tt (and others) does not include jQuery
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2016-04-21 17:57:03 UTC
Size:
4.90 KB
patch
obsolete
>From 60f04e281fac6d810d321f5bd00a2f190b6848ef Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Thu, 7 Apr 2016 19:10:55 +0200 >Subject: [PATCH] [SIGNED-OFF]Bug 16218: printfeercpt.tt (and others) does not > include jQuery > >This patch adds [% INCLUDE 'doc-head-close.inc' %] to the following files >(to make them include jQuery): > >koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt > >To test: > >1) Temporarily include the follwing lines in syspref IntranetSlipPrinterJS: > >function printThenClose() { > if (typeof jQuery != 'undefined') { > // jQuery is loaded => print the version > alert(jQuery.fn.jquery); > } > else { > alert('jQuery not available'); > } >} > >2) Go to a users page and print slips: >From the Print button in the tool bar: >- Print summary >- Print slip >- Print quick slip >From the "Fines" tab: Account >- 'Print' link in the table with paid transactions > >Without patch, a JavaScript message 'jQuery not avaliable' appears. >With patch, the message displays the current jQuery version (1.7.2) > >3) Remove IntranetSlipPrinterJS >- Verify that the slips above print as expected. > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as expected >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt | 1 + > .../intranet-tmpl/prog/en/modules/members/moremember-receipt.tt | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt | 1 + > 4 files changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >index 9bf6707..991cb68 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >@@ -9,7 +9,7 @@ > [% ELSIF ( title ) %] > <title>Koha › Patrons › [% title %]</title> > [% END %] >- >+[% INCLUDE 'doc-head-close.inc' %] > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" /> > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" /> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >index d7637ec..ac797ff 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >@@ -3,6 +3,7 @@ > [% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title> >+ [% INCLUDE 'doc-head-close.inc' %] > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" /> > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" /> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >index c7d67a1..f544ebd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >@@ -1,6 +1,7 @@ > [% USE Koha %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Print Receipt for [% cardnumber %]</title> >+[% INCLUDE 'doc-head-close.inc' %] > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" /> > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" /> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >index d99c1a9..51d11bf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >@@ -2,6 +2,7 @@ > [% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Print Receipt for [% cardnumber %]</title> >+[% INCLUDE 'doc-head-close.inc' %] > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" /> > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" /> >-- >1.7.10.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 16218
:
50041
|
50535
|
50621