LP#1635386: Restore to xul colors and remove colors from class names
authorKathy Lussier <klussier@masslnc.org>
Fri, 1 Jun 2018 13:51:07 +0000 (09:51 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 28 Jun 2018 18:21:11 +0000 (14:21 -0400)
This commit restores the xul display where overdue items were highlighted
in red and long overdue items were highlighted in orange. Also removes
the colors from the class names since people may decide to use totally different
colors or style the rows in different ways.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>

Open-ILS/src/templates/staff/css/style.css.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js

index 94e4e86..ff61b4a 100644 (file)
@@ -346,29 +346,29 @@ table.list tr.selected td { /* deprecated? */
 }
 
 /* patron bill row-highlighting */
-.red-row-highlight {
+.overdue-row {
   color: #FFF;
   background-color: #EB0000 !important;
 }
-.red-row-highlight a:link, .dark-red-row-highlight a:link {
+.overdue-row a:link, .lost-row a:link {
   color: #B8ECFF;
 }
-.orange-row-highlight {
+.longoverdue-row {
   color: #000;
   background-color: #FFE1A8 !important;
 }
-.dark-red-row-highlight {
+.lost-row {
   color: #FFF;
   background-color: #800000 !important;
 
 }
-.eg-grid-row-selected.red-row-highlight {
+.eg-grid-row-selected.overdue-row {
   background-color: #CF0000 !important;
 }
-.eg-grid-row-selected.orange-row-highlight {
+.eg-grid-row-selected.longoverdue-row {
   background-color: #FFCF75 !important;
 }
-.eg-grid-row-selected.dark-red-row-highlight {
+.eg-grid-row-selected.lost-row {
   background-color: #5C0000 !important;
 }
 
index bd1e9be..63a7121 100644 (file)
@@ -225,11 +225,11 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
         apply: function(item) {
             if (!item['circulation.checkin_time']) {
                 if (item['circulation.stop_fines'] == 'LOST') {
-                    return 'dark-red-row-highlight';
+                    return 'lost-row';
                 } else if (item['circulation.stop_fines'] == 'LONGOVERDUE') {
-                    return 'red-row-highlight';
+                    return 'longoverdue-row';
                 } else {
-                    return 'orange-row-highlight';
+                    return 'overdue-row';
                 }
             }
         }