]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/acq/financial/claim_voucher.js
Window.open fixes
[working/Evergreen.git] / Open-ILS / web / js / ui / default / acq / financial / claim_voucher.js
1 function openClaimVoucherWindow() {
2     var win = window.open(
3         "", "", "resizable,width=800,height=600,scrollbars=1,chrome"
4     );
5     /* XXX i18n - also, the reason this isn't loaded from a server-side page
6      * has to do with problems of knowing when the page has loaded, so we
7      * can begin maniuplating it. we could retrieve content with an xhr call
8      * though...
9      */
10     win.document.title = "Claim Voucher";
11     win.document.body.innerHTML =
12         '<h1>Claim Voucher</h1>' +
13         '<div>' +
14         '<button id="print" onclick="window.print();" disabled="disabled">' +
15         'Loading...' +
16         '</button>' +
17         '</div>' +
18         '<hr />' +
19         '<div id="main"></div>'
20     ;
21     return win;
22 };