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

            Bug ID: 41705
           Summary: Popup blockers may be triggered by options to
                    automatically display payment receipt for printing
                    after making a payments
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Circulation
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected],
                    [email protected],
                    [email protected],
                    [email protected],
                    [email protected],
                    [email protected],
                    [email protected]
        Depends on: 23228, 23461
            Blocks: 13985

The pattern we use for automatically printing receipts and slips can often
trigger popup blockers.

This is because we trigger the popup window via JavaScript after page reload
and this is interpreted as not being a user directed event and thus invokes
many browsers popup blocking code.

We could reverse our process such that the form submission itself has a
target="_blank" attribute to trigger the popup at form submission time (which
is a direct user action), then our controller handles the post, redirect, get
pattern for printing. We fires the window print in the already opened new tab
and finally close the tab, thus bringing the original tab back into focus,
after print.

This would need a little thought regarding the original tab, as we'd need the
reset that tabs context/state as part of the initial submit that triggers the
popup earlier in the process.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13985
[Bug 13985] [Omnibus] Cash Management - Koha as 'Point of Sale'
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23228
[Bug 23228] Add option to automatically display payment receipt for printing
after making a payment
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23461
[Bug 23461] Popup blockers triggered by option to automatically display payment
receipt for printing after making a payment
-- 
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
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