Initial dev repository
[kcls-web.git] / js / ui / default / acq / financial / claim_voucher.js
diff --git a/js/ui/default/acq/financial/claim_voucher.js b/js/ui/default/acq/financial/claim_voucher.js
new file mode 100644 (file)
index 0000000..c6191f8
--- /dev/null
@@ -0,0 +1,22 @@
+function openClaimVoucherWindow() {
+    var win = window.open(
+        "", "", "resizable,width=800,height=600,scrollbars=1"
+    );
+    /* XXX i18n - also, the reason this isn't loaded from a server-side page
+     * has to do with problems of knowing when the page has loaded, so we
+     * can begin maniuplating it. we could retrieve content with an xhr call
+     * though...
+     */
+    win.document.title = "Claim Voucher";
+    win.document.body.innerHTML =
+        '<h1>Claim Voucher</h1>' +
+        '<div>' +
+        '<button id="print" onclick="window.print();" disabled="disabled">' +
+        'Loading...' +
+        '</button>' +
+        '</div>' +
+        '<hr />' +
+        '<div id="main"></div>'
+    ;
+    return win;
+};