list actions made easy. Standardize the list actions for the bill details interface
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 Sep 2009 04:59:02 +0000 (04:59 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 29 Sep 2009 04:59:02 +0000 (04:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14194 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill_details.js
Open-ILS/xul/staff_client/server/patron/bill_details.xul

index edffe1e..c126ef3 100644 (file)
@@ -132,6 +132,9 @@ function init_lists() {
         },
     } );
 
+    $('bill_list_actions').appendChild( g.bill_list.render_list_actions() );
+    g.bill_list.set_list_actions();
+
     g.payment_list.init( {
         'columns' : patron.util.mp_columns({}),
         'map_row_to_columns' : patron.util.std_map_row_to_columns(),
@@ -143,6 +146,9 @@ function init_lists() {
             );
         },
     } );
+
+    $('payment_list_actions').appendChild( g.payment_list.render_list_actions() );
+    g.payment_list.set_list_actions();
 }
 
 function retrieve_mb() {
index cc3d99f..8b57f1d 100644 (file)
@@ -49,9 +49,7 @@
                                <caption label="&staff.patron.bill_details.bills.label;" style="color: red"/>
                                <tree id="bill_tree" flex="1" enableColumnDrag="true"/>
                                <hbox>
-                                       <button label="&staff.patron.bill_details.save_columns.label;" oncommand="g.bill_list.save_columns();"/>
-                                       <button label="&staff.patron.bill_details.copy_to_clipboard.label;" oncommand="g.bill_list.clipboard();"/>
-                                       <button label="&staff.patron.bill_details.print_export.label;" oncommand="try { g.bill_list.on_all_fleshed = function() { JSAN.use('util.print'); var p = new util.print(); p.simple( g.bill_list.dump_csv(), { 'content_type' : 'text/plain' } ); setTimeout( function() { g.bill_list.on_all_fleshed = null; }, 0); }; g.bill_list.full_retrieve(); } catch(E) { alert(E); }"/>
+                    <hbox id="bill_list_actions" />
                                        <spacer flex="1"/>
                                        <button id="void" label="&staff.patron.bill_details.void_selection.label;" disabled="true"/>
                                </hbox>
@@ -63,9 +61,7 @@
                                <caption label="&staff.patron.bill_details.payments.label;" style="color: green"/>
                                <tree id="payment_tree" flex="1" enableColumnDrag="true"/>
                                <hbox>
-                                       <button label="&staff.patron.bill_details.save_columns.label;" oncommand="g.payment_list.save_columns();"/>
-                                       <button label="&staff.patron.bill_details.copy_to_clipboard.label;" oncommand="g.payment_list.clipboard();"/>
-                                       <button label="&staff.patron.bill_details.print_export.label;" oncommand="try { g.payment_list.on_all_fleshed = function() { JSAN.use('util.print'); var p = new util.print(); p.simple( g.payment_list.dump_csv(), { 'content_type' : 'text/plain' } ); setTimeout( function() { g.payment_list.on_all_fleshed = null; }, 0); }; g.payment_list.full_retrieve(); } catch(E) { alert(E); }"/>
+                    <hbox id="payment_list_actions" />
                                        <spacer flex="1"/>
                                </hbox>
                        </groupbox>