[Koha-bugs] [Bug 16575] New: Irregular behaviour using window.print() followed by window.location.href=

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 24 09:00:27 CEST 2016


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

            Bug ID: 16575
           Summary: Irregular behaviour using window.print() followed by
                    window.location.href=
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

As we noticed in bug 11014, different browsers handle "window.print()"
differently.

In the case of window.print() followed by window.location.href=, I've found in
IE 11 on Windows 8.1 that the browser changes the window location before the
system print dialogue even opens. If I try to mitigate that using the timer
from bug 11014, it works in IE and Chrome, but it breaks in Firefox. If I try
to use the onafterprint in IE and Firefox, it works in IE but it breaks in
Firefox.

I started wondering if we even need to be using this window.print() followed by
window.location.href= and it occurred to me that we really don't. We should
just be using print.css.  

Patch to follow soon...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list