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

Back to archive index

Tom Hayakawa tom_g3x****@users*****
2007年 4月 5日 (木) 00:24:10 JST


Index: xoops2jp/html/include/xoops.js
diff -u xoops2jp/html/include/xoops.js:1.1.8.1.2.1.2.1 xoops2jp/html/include/xoops.js:1.1.8.1.2.1.2.2
--- xoops2jp/html/include/xoops.js:1.1.8.1.2.1.2.1	Fri Mar 30 18:06:08 2007
+++ xoops2jp/html/include/xoops.js	Thu Apr  5 00:24:10 2007
@@ -136,7 +136,7 @@
     var switch_cbox = xoopsGetElementById(switchid);
     for (var i = 0; i < ele.length; i++) {
         var e = ele[i];
-        if ( (e.type == 'checkbox') && (e.id == groupid) ) {
+        if ( (e.type == 'checkbox') && (e.id.substr(0,groupid.length) == groupid) ) {
             e.checked = switch_cbox.checked;
             e.click(); e.click();  // Click to activate subgroups
                                     // Twice so we don't reverse effect
@@ -144,21 +144,6 @@
     }
 }
 
-/* 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