https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40108

--- Comment #8 from Brendan Lawlor <[email protected]> ---
In the meantime until this gets backported, assuming you have
SelfCheckReceiptPrompt enabled you can add this js snippet to SCOUserJS to
override the finish button's click handler:

$(document).ready(function() {
  $("#logout_form").off("click");
  $("#logout_form").on("click", function(e){
    e.preventDefault(e);
    confirmModal("", _("Would you like to print a receipt?"), _("Print receipt
and end session"), _("End session"), function(result) {
      if ( result ) {
        var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
        location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
      } else {
          location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
        }
    });

    return true;
  });
});

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to