From 97e9ef5cc2de260a02fecedb5cdec4de8dac7312 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 8 Sep 2010 19:57:33 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/actor/user/register.js | 3 +++ 1 file changed, 3 insertions(+) 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 dfbfe4529..b1aea1728 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'); -- 2.11.0