From 69fdcb18d89459caf84a6bf9e79848d522b08d66 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 21 Dec 2007 06:18:07 +0000 Subject: [PATCH] consider .auth for services git-svn-id: svn://svn.open-ils.org/ILS/trunk@8262 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/z3950.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/z3950.js b/Open-ILS/xul/staff_client/server/cat/z3950.js index 77d6c8c8f4..a76f1816d1 100644 --- a/Open-ILS/xul/staff_client/server/cat/z3950.js +++ b/Open-ILS/xul/staff_client/server/cat/z3950.js @@ -288,9 +288,11 @@ cat.z3950.prototype = { var username = document.createElement('textbox'); username.setAttribute('id',i+'_username'); if (obj.creds.hosts[ obj.data.server_unadorned ] && obj.creds.hosts[ obj.data.server_unadorned ].services[i]) username.setAttribute('value',obj.creds.hosts[ obj.data.server_unadorned ].services[i].username); r.appendChild(username); + if (typeof robj[i].auth != 'undefined') username.hidden = ! get_bool( robj[i].auth ); var password = document.createElement('textbox'); password.setAttribute('id',i+'_password'); if (obj.creds.hosts[ obj.data.server_unadorned ] && obj.creds.hosts[ obj.data.server_unadorned ].services[i]) password.setAttribute('value',obj.creds.hosts[ obj.data.server_unadorned ].services[i].password); password.setAttribute('type','password'); r.appendChild(password); + if (typeof robj[i].auth != 'undefined') password.hidden = ! get_bool( robj[i].auth ); } setTimeout( function() { -- 2.11.0