Forums

Checkbox on admin list

orion_pt 02 Nov, 2013
I think there's a bug on the checkboxes on admin list view. When selecting an entry it produces a javascript error "isChecked is not defined" making it impossible to delete a record.

A couple of changes sorted this out:

on /administrator/components/com_chronoconnectivity/views/list_data.php

line 190 change:

<input type="checkbox" id="cb<?php echo $i;?>" name="cid[<?php echo $i;?>]" value="<?php echo $primary_value; ?>" onclick="isChecked(this.checked);" />


to:

<input type="checkbox" id="cb<?php echo $i;?>" name="cid[<?php echo $i;?>]" value="<?php echo $primary_value; ?>" onclick="Joomla.isChecked(this.checked);" />


on /administrator/components/com_chronoconnectivity/views/custom_list.php

line 200 change:

<input type="checkbox" id="cb<?php echo $i;?>" name="cid[<?php echo $i;?>]" value="<?php echo $primary_value; ?>" onclick="isChecked(this.checked);" />


to:

<input type="checkbox" id="cb<?php echo $i;?>" name="cid[<?php echo $i;?>]" value="<?php echo $primary_value; ?>" onclick="Joomla.isChecked(this.checked);" />


I'm using Chronoconnectivity latest version 4.0 RC3.3 with Joomla 3.1.5
Stijn C 23 Jan, 2014
Hi orion_pt

I'm having the same problem using
- Joomla! 3.2.0 Stable [ Ember ] 6-November-2013 14:00 GMT
- ChronoConnectivity_V4_J3.0

After changing the 2 lines in list_data.php & custom_list.php the problem persists.

Also the left top checkbox on the field name level should be a "select all" checkbox, what doesn't work neither on the admin & frontend list.

In custom_list.php on line 149 i could find
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($table_data); ?>);" />


In list_data.php on line 130 i could find
<th width="1%" class='<?php echo 'th-'.$html_helper->slug('cb'); ?>'><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($table_data); ?>);" /></th>


Anyone had/has the same problem?
Thanks in advance!
This topic is locked and no more replies can be posted.