From 849f178cd804bd6e54f2c02deb9d7b9837f255e4 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) fix whitespace This patch also fixes a JavaScript syntax error if the SelfCheckReceiptPrompt system preference is off. Signed-off-by: Galen Charlton (cherry picked from commit 6254f5f07ab84ef7d6b6518d8f39bde9987a92e4) Signed-off-by: Fridolin Somers --- .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 10 +++++----- koha-tmpl/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 b98ba611be..f903631746 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 2fbdefb682..45eb4a70cd 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; }); }); -- 2.39.5