consider .auth for services
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 Dec 2007 06:18:07 +0000 (06:18 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 21 Dec 2007 06:18:07 +0000 (06:18 +0000)
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

index 77d6c8c..a76f181 100644 (file)
@@ -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() {