From 9b9f289f18ef91c29a7a78bd214731a7701d5578 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 13 Dec 2012 12:48:16 -0500 Subject: [PATCH] Bug 8033: Change javascipt behavior to degrade nicely Signed-off-by: Elliott Davis Signed-off-by: Jared Camins-Esakov --- koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 c8fae51734..139867343b 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 @@ -99,12 +99,11 @@ $(document).ready(function() { }); //]]> $(document).ready(function(){ - $("#logout_form input.finish").click(function(){ - if(confirm("Would you like to print a receipt?")){ - window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); - } - $(this).parent().attr("action", "/cgi-bin/koha/sco/sco-main.pl?op=logout"); - $(this).parent().submit(); + $("#logout_form").submit(function(){ + if(confirm("Would you like to print a receipt?")){ + window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip"); + } + return true; }); }); -- 2.39.5