wizards don't work with remote xul yet
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Dec 2005 22:20:00 +0000 (22:20 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Dec 2005 22:20:00 +0000 (22:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2477 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill_wizard.xul
Open-ILS/xul/staff_client/server/patron/bills.js

index 36dd695..b881463 100644 (file)
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<wizard id="patron_bill" title="Bill Patron Wizard"
+<window id="patron_bill" title="Bill Patron Wizard"
        orient="vertical" style="overflow: auto"
        onload="patron_bill_init()" width="800" height="600"
-       onwizardfinish="patron_bill_finish()"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -98,8 +97,8 @@
                                        throw('mg_id = ' + mg_id);
                                }
                        } catch(E) {
-                               g.error.sdump('D_ERROR',E);
-                               alert(E);
+                               g.error.sdump('D_ERROR',js2JSON(E));
+                               alert(js2JSON(E));
                        }
                }
 
        </script>
 
 
-       <wizardpage id="page1" description="Billing Patron" onpageadvanced="">
+       <groupbox>
+               <caption label="Bill Patron"/>
                <label id="patron_name"/>
                <grid>
                        <columns> <column flex="0" /> <column flex="0" /> </columns>
                                <row><label value="Note"/><textbox id="bill_note" multiline="true" rows="5" /></row>
                        </rows>
                </grid>
-       </wizardpage>
+               <button label="Submit this Bill" oncommand="patron_bill_finish()"/>
+       </groupbox>
 
-</wizard>
+</window>
 
 
index b582093..79b424e 100644 (file)
@@ -66,7 +66,7 @@ patron.bills.prototype = {
                                                                        + '?session=' + window.escape(obj.session)
                                                                        + '&patron_id=' + window.escape(obj.patron_id),
                                                                'billwizard',
-                                                               'modal,chrome,resizable'
+                                                               'chrome,resizable,modal'
                                                        );
                                                }
                                        ],