[open-ils-commits] r14194 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 29 00:59:06 EDT 2009
Author: phasefx
Date: 2009-09-29 00:59:02 -0400 (Tue, 29 Sep 2009)
New Revision: 14194
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js
trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul
Log:
list actions made easy. Standardize the list actions for the bill details interface
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js 2009-09-29 04:51:07 UTC (rev 14193)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js 2009-09-29 04:59:02 UTC (rev 14194)
@@ -132,6 +132,9 @@
},
} );
+ $('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 @@
);
},
} );
+
+ $('payment_list_actions').appendChild( g.payment_list.render_list_actions() );
+ g.payment_list.set_list_actions();
}
function retrieve_mb() {
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul 2009-09-29 04:51:07 UTC (rev 14193)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul 2009-09-29 04:59:02 UTC (rev 14194)
@@ -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>
More information about the open-ils-commits
mailing list