[open-ils-commits] r14454 - in trunk/Open-ILS/xul/staff_client/server: patron skin (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Oct 15 14:50:55 EDT 2009


Author: phasefx
Date: 2009-10-15 14:50:50 -0400 (Thu, 15 Oct 2009)
New Revision: 14454

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
   trunk/Open-ILS/xul/staff_client/server/skin/circ.css
Log:
style refundable rows with a pink background :)

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill2.js	2009-10-15 18:14:12 UTC (rev 14453)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill2.js	2009-10-15 18:50:50 UTC (rev 14454)
@@ -194,6 +194,7 @@
                         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();

Modified: trunk/Open-ILS/xul/staff_client/server/skin/circ.css
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/skin/circ.css	2009-10-15 18:14:12 UTC (rev 14453)
+++ trunk/Open-ILS/xul/staff_client/server/skin/circ.css	2009-10-15 18:50:50 UTC (rev 14454)
@@ -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 { }



More information about the open-ils-commits mailing list