Update of
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community/js
In directory james.mmbase.org:/tmp/cvs-serv13751/js
Modified Files:
Tag: b1_5
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.2.2.1
retrieving revision 1.2.2.2
diff -u -b -r1.2.2.1 -r1.2.2.2
--- formcheck.js 2 Dec 2008 09:49:58 -0000 1.2.2.1
+++ formcheck.js 3 Dec 2008 06:15:53 -0000 1.2.2.2
@@ -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]);
+ }
+ }
+ }
+}
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs