Steps to reproduce:
1) Go to a patron's Check out tab
2) Select 'Print slip' or 'Quick slip'
Expected behaviour: print dialog for the new page.
Sympthom: window opens and instantly closes without the print dialog.
Tested to work on:
- Firefox 4 (Ubuntu)
- Internet Explorer 8 (Windows XP)
Tested not to work on:
- Chromium (Ubuntu)
- Chrome (Ubuntu)
- Safari (cait's Mac?)
- Rekonq 0.6.1 (Ubuntu)
On rekonq it returns an empty page.
Created attachment 3817 [details] [review]
Wrap print then close js in a function and wait for the page to load (onload)
Created attachment 3818 [details] [review]
Follow up, for other files
This bug makes patches for bug 4389 work on webkit-based browsers too. Once this is pushed it should be noted in 4389 so testers can recheck.
Id love if someone could rebase this on TT so I can apply them
Created attachment 3890 [details] [review]
[pre-tt master] Wrap print;close in a function
Created attachment 3891 [details] [review]
[tt] Wrap print;close in a function
Created attachment 3896 [details] [review]
Note that the unsquashed version for HTML::Template::Pro has already been signed off as well.
Patch for master pushed
Created attachment 3943 [details] [review]
Proposed patch [3.2.x]
Works a treat in 3.4.