[xoops-cvslog 6272] CVS update: xoops2jp/html/include

Back to archive index

Tom Hayakawa tom_g3x****@users*****
2007年 3月 30日 (金) 18:06:08 JST


Index: xoops2jp/html/include/xoops.js
diff -u xoops2jp/html/include/xoops.js:1.1.8.1.2.1 xoops2jp/html/include/xoops.js:1.1.8.1.2.1.2.1
--- xoops2jp/html/include/xoops.js:1.1.8.1.2.1	Mon Nov 27 16:42:21 2006
+++ xoops2jp/html/include/xoops.js	Fri Mar 30 18:06:08 2007
@@ -144,6 +144,21 @@
     }
 }
 
+/* test function    (30Mar2007) */
+function xoopsCheckGroupname(formname, switchid, groupname) {
+    var ele = document.forms[formname].elements;
+    var switch_cbox = xoopsGetElementById(switchid);
+    for (var i = 0; i < ele.length; i++) {
+        var e = ele[i];
+        if ( (e.type == 'checkbox') && (e.name == groupname) ) {
+            e.checked = switch_cbox.checked;
+            e.click(); e.click();  // Click to activate subgroups
+                                    // Twice so we don't reverse effect
+        }
+    }
+}
+/* end of test function */
+
 function xoopsCheckAllElements(elementIds, switchId) {
     var switch_cbox = xoopsGetElementById(switchId);
     for (var i = 0; i < elementIds.length; i++) {


xoops-cvslog メーリングリストの案内
Back to archive index