style refundable rows with a pink background :)
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Oct 2009 18:50:50 +0000 (18:50 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Oct 2009 18:50:50 +0000 (18:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14454 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill2.js
Open-ILS/xul/staff_client/server/skin/circ.css

index d2a1963..3871609 100644 (file)
@@ -194,6 +194,7 @@ function init_lists() {
                         g.bill_map[ id ] = blob;
                         g.check_map[ id ] = row.my.checked;
                         if (typeof params.on_retrieve == 'function') {
+                            if ( Number( row.my.mbts.balance_owed() ) < 0 ) params.row_node.firstChild.setAttribute('properties','refundable');
                             params.on_retrieve(row);
                         };
                         tally_selected();
index 75fa06f..2f0facc 100644 (file)
@@ -3,6 +3,10 @@
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 
 @namespace html url("http://www.w3.org/TR/REC-html40"); 
 
+treechildren::-moz-tree-row(refundable) {
+    background-color: pink;
+}
+
 .checkin_screen_normal { background-color: green; }
 .checkin_screen_backdating { background-color: red; }
 .checkin_screen_do_not_alert_on_precat { }