From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 8 Sep 2010 19:57:33 +0000 (+0000)
Subject: make the table rows containing stat cats in the patron editor more easily selectable... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=97e9ef5cc2de260a02fecedb5cdec4de8dac7312;p=evergreen%2Fmasslnc.git

make the table rows containing stat cats in the patron editor more easily selectable by CSS.  So, for example, we could put something like this in register_custom.css: TR[stat_cat_id='1'] { border: solid thick red; font-size: x-large; }


git-svn-id: svn://svn.open-ils.org/ILS/trunk@17523 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index dfbfe45291..b1aea17280 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -456,6 +456,9 @@ function loadStatCats() {
         var stat = statCats[idx];
         var row = statCatTemplate.cloneNode(true);
         row.id = 'stat-cat-row-' + idx;
+        row.setAttribute('stat_cat_owner',stat.owner());
+        row.setAttribute('stat_cat_name',stat.name());
+        row.setAttribute('stat_cat_id',stat.id());
         tbody.appendChild(row);
         getByName(row, 'name').innerHTML = stat.name();
         var valtd = getByName(row, 'widget');