View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09767Bug reportsOtherpublic2026-11-20 11:03
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Summary09767: Remove cancelBubbleThis function
Description

All checkbox have cancelBubbleThis function.
This break a lot of own javascript :

  • Using .on("click","input:checkbox") don't work
  • Using .on("click",".checkbox-item",function(){ console.log($(this).find(":checkbox").is(":checked"); } can return false information.
Additional Information

Think it was added a long time ago for td click but function was updated now.
https://github.com/LimeSurvey/LimeSurvey/blob/master/scripts/survey_runtime.js#L378

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-07-08 18:04

developer   ~32657

@Tony : do you remind when / why this old function was added ?
Do you think we can remove it ?

tpartner

tpartner

2015-07-09 15:01

partner   ~32664

Hi Denis. I have no idea when or why that was added. I don't see any problem with removing it now.

DenisChenu

DenisChenu

2015-07-09 16:06

developer   ~32665

Last edited: 2015-07-09 16:07

Tony : do you have an IE8 for testing purpose ?
I can remove it, send you a link to test ?

And: do you have too some difficulty with checkbox managing with jquery ?

tpartner

tpartner

2015-07-09 17:35

partner   ~32666

Yes, I have a native IE8 installation.

I normally use something like this for checkboxes:

$('input:checkbox').on('change', function(e) {
console.log($(this).prop('checked'));
});

DenisChenu

DenisChenu

2015-07-09 18:07

developer   ~32667

And it work ? change and not click ... Rigth , the best ...

c_schmitz

c_schmitz

2026-11-20 11:03

administrator   ~87804

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=41366

c_schmitz

c_schmitz

2026-11-20 11:03

administrator   ~87805

Fixed. Clicks on image select answers now reach your own JavaScript like all other answers. The normal checkbox and radio questions already worked this way.

Related Changesets

LimeSurvey: master 46fb15ba

2026-11-20 11:02

c_schmitz


Details Diff
Fixed issue 09767: Custom JavaScript could not catch clicks on image select answers
Dev Removed cancelBubbleThis() from the image select question themes and deprecated it; the image label no longer runs checkconditions() a second time with empty values
Affected Issues
09767
mod - assets/scripts/survey_runtime.js Diff File
mod - assets/survey_themes/fruity_twentythree/questiontypes/deselect-singlechoice/deselect-singlechoice.js Diff File
mod - themes/question/image_select-listradio/survey/questions/answer/listradio/rows/answer_row.twig Diff File
mod - themes/question/image_select-multiplechoice/survey/questions/answer/multiplechoice/rows/answer_row.twig Diff File
mod - themes/survey/fruity_twentythree/scripts/theme.js Diff File

Issue History

Date Modified Username Field Change
2015-07-08 18:03 DenisChenu New Issue
2015-07-08 18:04 DenisChenu Note Added: 32657
2015-07-08 18:04 DenisChenu Assigned To => tpartner
2015-07-08 18:04 DenisChenu Status new => feedback
2015-07-09 15:01 tpartner Note Added: 32664
2015-07-09 15:01 tpartner Assigned To tpartner => DenisChenu
2015-07-09 15:01 tpartner Status feedback => assigned
2015-07-09 16:06 DenisChenu Note Added: 32665
2015-07-09 16:07 DenisChenu Note Edited: 32665
2015-07-09 17:35 tpartner Note Added: 32666
2015-07-09 18:07 DenisChenu Note Added: 32667
2016-05-31 10:34 DenisChenu Assigned To DenisChenu =>
2016-06-04 14:25 DenisChenu Status assigned => new
2026-11-19 22:50 c_schmitz Status new => acknowledged
2026-11-20 11:03 c_schmitz Changeset attached => LimeSurvey master 46fb15ba
2026-11-20 11:03 c_schmitz Note Added: 87804
2026-11-20 11:03 c_schmitz Assigned To => c_schmitz
2026-11-20 11:03 c_schmitz Status acknowledged => resolved
2026-11-20 11:03 c_schmitz Resolution open => fixed
2026-11-20 11:03 c_schmitz Bug heat 4 => 6
2026-11-20 11:03 c_schmitz Note Added: 87805