[open-ils-commits] r17522 - trunk/Open-ILS/web/js/ui/default/actor/user (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 8 15:32:47 EDT 2010
Author: phasefx
Date: 2010-09-08 15:32:42 -0400 (Wed, 08 Sep 2010)
New Revision: 17522
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
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; }
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-09-08 18:58:39 UTC (rev 17521)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-09-08 19:32:42 UTC (rev 17522)
@@ -522,6 +522,8 @@
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 @@
wtd.appendChild(span);
var fmObject = null;
- var disabled = false;
switch(fmcls) {
case 'au' : fmObject = patron; break;
case 'ac' : fmObject = patron.card(); break;
More information about the open-ils-commits
mailing list