[Netpass-devel] NetPass/www/htdocs/OSSTemplate/js common.js,1.4,1.5 userform.js,1.10,1.11
Brought to you by:
jeffmurphy
From: jeff m. <jef...@us...> - 2005-08-03 01:37:18
|
Update of /cvsroot/netpass/NetPass/www/htdocs/OSSTemplate/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9056 Modified Files: common.js userform.js Log Message: bug fix for userform not showing all the acls the user is privileged for Index: userform.js =================================================================== RCS file: /cvsroot/netpass/NetPass/www/htdocs/OSSTemplate/js/userform.js,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- userform.js 4 May 2005 20:22:18 -0000 1.10 +++ userform.js 3 Aug 2005 01:37:08 -0000 1.11 @@ -322,7 +322,7 @@ for(var acl in userhash[su][o.value]) { userform_disableModAll(); dbg(1, RN + ": acl/"+su+"/"+o.value+"="+acl); - highLightList("AccessControlList", acl); + highLightList("AccessControlList", acl, 1); } } } Index: common.js =================================================================== RCS file: /cvsroot/netpass/NetPass/www/htdocs/OSSTemplate/js/common.js,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- common.js 23 Jun 2005 20:21:10 -0000 1.4 +++ common.js 3 Aug 2005 01:37:08 -0000 1.5 @@ -102,12 +102,12 @@ } -function highLightList(oname, item) { +function highLightList(oname, item, dontclear) { var RN = "highLightList"; dbg(1, RN + "(" + oname + ", " + item + ")" ); var acl = document.getElementById(oname); if (acl) { - acl.selectedIndex = -1; + if (dontclear != 1) acl.selectedIndex = -1; for(var i = 1 ; i < acl.options.length ; i++) { if (item) { if (acl.options[i].value == item) |