a details button
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Nov 2005 19:37:16 +0000 (19:37 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Nov 2005 19:37:16 +0000 (19:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2059 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_bills.js

index d9eaa72..7a17066 100644 (file)
@@ -216,7 +216,7 @@ function patron_bills_list_box_init( p ) {
                {
                        'id' : 'notes', 'label' : getString('bills_information'), 'flex' : 1,
                        'primary' : false, 'hidden' : false, 'fm_class' : 'mbts',
-                       'fm_field_render' : '.last_billing_note()'
+                       'fm_field_render' : 'info_box($$)'
                },
                {
                        'id' : 'money', 'label' : getString('bills_money_label'), 'flex' : 0,
@@ -335,6 +335,18 @@ function patron_bills_add_patron_bills(p, bills) {
                return grid;
        }
 
+       function info_box( mbts ) {
+               var vbox = p.w.document.createElement('vbox');
+                       var label = p.w.document.createElement('label');
+                               vbox.appendChild( label );
+                               label.setAttribute( 'value', mbts.last_billing_note() );
+                       var btn = p.w.document.createElement('button');
+                               vbox.appendChild( btn );
+                               btn.setAttribute( 'label', 'Details' );
+                               btn.setAttribute( 'bill_id', mbts.id() );
+               return vbox;
+       }
+
        var obj_string ='mbts';
 
        setTimeout(