From 69fc60617d8225b68a77c04bf0e6e829a40c884c Mon Sep 17 00:00:00 2001 From: Elliott Davis Date: Tue, 2 Oct 2012 00:13:04 -0500 Subject: [PATCH] [Follow-up] Change javascipt behavior to degrade nicely http://bugs.koha-community.org/show_bug.cgi?id=8033 --- .../opac-tmpl/prog/en/modules/sco/sco-main.tt | 5 ++--- 1 files changed, 2 insertions(+), 3 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 a06e2f2..cd29b0d 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(){ + $("#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"); } - $(this).parent().attr("action", "/cgi-bin/koha/sco/sco-main.pl?op=logout"); - $(this).parent().submit(); + return true; }); }); -- 1.7.2.5