1
Using Firefox, I get a JavaScript error when trying to use the check all checkbox in user notifications (/notifications.php). It also happens on xoops.org site. If I use IE, the checkall box seems to work properly. Can someone help me correct this?
JavaScript Error: switch_cbox has no properties
File referenced: xoops.js line 140
Here is the code (line 140 marked in red):
function xoopsCheckGroup(formname, switchid, groupid) {
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.id == groupid) ) {
[color=CC0000]e.checked = switch_cbox.checked;[/color]
e.click(); e.click(); // Click to activate subgroups
// Twice so we don't reverse effect
}
}
}{
Thanks.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]