Update of /var/cvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community/js In directory james.mmbase.org:/tmp/cvs-serv13609/js
Modified Files: formcheck.js Log Message: CMSC-949, Blocking users: user status enhancements,pull-down options in lower case See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community/js See also: http://www.mmbase.org/jira/browse/CMSC-949 Index: formcheck.js =================================================================== RCS file: /var/cvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community/js/formcheck.js,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- formcheck.js 2 Dec 2008 08:18:01 -0000 1.3 +++ formcheck.js 3 Dec 2008 06:11:20 -0000 1.4 @@ -28,3 +28,19 @@ // alert(surl); window.location.href =surl; } \ No newline at end of file +function onState(){ + var sels = document.getElementsByTagName("select"); + for (i = 0; i < sels.length; i++) { + var sel = sels[i]; + var options = sel.getElementsByTagName("option"); + var v = options[0]; + if ("" == v.value) { + options[0].parentNode.removeChild(options[0]); + } + for (j = 1; j < options.length; j++) { + if (v.value == options[j].value) { + options[j].parentNode.removeChild(options[j]); + } + } + } +} _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs