Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Looks like the Click event on the checkbox needs to be stopped from bubbling
up. Looking at the code, if you amend the js function for the click on around
line 371 to add the event and to event.stopPropagation() at the end:
appendEl=$(appendEl).on("click", function(event){
//give this col an id if it doesn't have one
var myId='attcCol'+$(this).val();
if($(this).parents('th').attr('id')!= undefined){
myId=$(this).parents('th').attr('id');
}else{
$(this).parents('th').attr('id',myId);
}
//change the attribute to this column
if($(this).attr('data-attc-colType')=='desc'){
tableEl.attr('data-attc-colDescription',myId);
}else{
//todo remove value if unchecked
if(tableEl.attr('data-attc-type') =='pie'){
tableEl.attr('data-attc-colValues',myId);
}else{
//select all the checked inputs
var checkedIds=tableEl.find('input[data-attc-colType=value]:checked').parents('th').map(function() { return this.id; }).get().toString();
tableEl.attr('data-attc-colValues',checkedIds);
}
}
//re-create chart
CreateChart(tableEl.attr('data-attc-type'),settings.location,tableEl,defaultHeight);
event.stopPropagation();
});
Original comment by nat...@gmail.com
on 17 Jul 2014 at 9:00
Original issue reported on code.google.com by
tahir.ah...@callture.com
on 16 Aug 2013 at 10:00