From: phasefx Date: Wed, 8 Sep 2010 19:32:42 +0000 (+0000) Subject: let's us set the z-index to -1 for rows in register_custom.css to make certain patron... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b33d28c46eeefd898f45b68fc172cd80c17a0fef;p=contrib%2FConifer.git let's us set the z-index to -1 for rows in register_custom.css to make certain patron editor fields read-only. miker_++ For example: TR[fmfield=ident_value] { z-index: -1; } git-svn-id: svn://svn.open-ils.org/ILS/trunk@17522 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 4004dd0bd2..dfbfe45291 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -522,6 +522,8 @@ function fleshFMRow(row, fmcls, args) { var wclass = row.getAttribute('wclass'); var wstyle = row.getAttribute('wstyle'); var wconstraints = row.getAttribute('wconstraints'); + /* use CSS to set the zindex for widgets you want to disable. */ + var disabled = dojo.style(row, 'zIndex') == -1 ? true : false; var isPasswd2 = (fmfield == 'passwd2'); if(isPasswd2) fmfield = 'passwd'; @@ -551,7 +553,6 @@ function fleshFMRow(row, fmcls, args) { wtd.appendChild(span); var fmObject = null; - var disabled = false; switch(fmcls) { case 'au' : fmObject = patron; break; case 'ac' : fmObject = patron.card(); break;