http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10376
David Cook <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #10 from David Cook <[email protected]> --- Fun fact: Microsoft have changed the navigator.appName property to "Netscape" in IE11, so this latest fix won't work for newer versions of IE. http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx Conditional comments were also removed in IE 10 which makes "simpler" separation of browser dependent code impossible. http://msdn.microsoft.com/en-us/library/ie/hh801214(v=vs.85).aspx -- I've looked at this a million different ways...and there's always a problem. window.onfocus (works great for IE but doesn't work for Chrome or Firefox.) window.setTimeout (this has different syntax in different browsers. While you can get it to work with Chrome + IE or Chrome + FF, you can't seem to get it to work with all 3.) -- I was able to trigger location.href only after the "afterprint" event fired but it didn't make a difference. It still redirected before printing in IE. I tried using this as a guide: http://msdn.microsoft.com/en-us/library/ie/hh273397(v=vs.85).aspx But I can't think of any way to really identify IE as separate from FF or Chrome without more browser detection of some kind. The thing is that "window.onfocus" does work, but you have to remove focus from a FF or Chrome window by switching windows and coming back to it. -- I don't know if there really is a solution to this problem. It probably wouldn't help to open a new window, print, and close, because I think the same thing happens. -- I tried "<body onload="window.print()" onfocus='location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]";'>", which works in IE and Firefox, but not Chrome... I don't know. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
