From 44296566b796d27a7dfe98a54d4166b89c07b323 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 --- .../opac-tmpl/prog/en/modules/sco/sco-main.tt | 11 +++++------ 1 files 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 c8fae51..1398673 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; }); }); -- 1.7.2.5