From 0c53534051cdd26f1f0ed6d78b81b52ac4aa4609 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 10 Jan 2014 09:15:25 -0500 Subject: [PATCH] Bug 11415 [QA Followup] - Add syspref to toggle SCO receipt printing --- .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 10 +++++----- .../opac-tmpl/prog/en/modules/sco/sco-main.tt | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index b98ba61..f903631 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -357,12 +357,12 @@ $("#logout_form").submit(function(){ clearTimeout(mainTimeout); - [% IF Koha.Preference('SelfCheckReceiptPrompt') %] - if(confirm("Would you like to print a receipt?")){ - window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); - [% END %] + [% IF Koha.Preference('SelfCheckReceiptPrompt') %] + if(confirm("Would you like to print a receipt?")){ + window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); + } + [% END %] - } return true; }); }); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt index 2fbdefb..45eb4a7 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt @@ -91,11 +91,11 @@ $(document).ready(function() { })); $("#logout_form").submit(function(){ clearTimeout(mainTimeout); - [% IF Koha.Preference('SelfCheckReceiptPrompt') %] - if(confirm("Would you like to print a receipt?")){ - window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); - [%END %] - } + [% IF Koha.Preference('SelfCheckReceiptPrompt') %] + if( confirm("Would you like to print a receipt?") ) { + window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); + } + [% END %] return true; }); }); -- 1.7.2.5