View Issue Details

IDProjectCategoryView StatusLast Update
14999Bug reports[All Projects] Theme editorpublic2019-06-24 09:58
ReporterDenisChenu Assigned To 
Status newResolutionopen 
Product Version3.17.x 
Target VersionFixed in Version 
Summary14999: Unable to unregister or replace script file

I try to work on an alternative JS solution on multiple checkbox with comment.
But i can't unregister the default script

Steps To Reproduce

Add {{ unregisterScriptFile( getConfig('generalscripts') ~ "multiplechoice_withcomments.js") }} at end of layout_global.twig
Create a multiple checkbox with comment : test, script still get loaded

Additional Information

And since script is loaded in qanda : can not be replaced

Current solution : adding this at end of layout_global

                var doMultipleChoiceWithComments = function(qID,when) {  console.warn([qID,when]); };

But since there are an unregisterScriptFile function, i think it muts unregister the script file
There are a lack of $position in unregisterScriptFile

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.17.5 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database & DB-Versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant




2019-06-24 09:58

developer   ~52493

There are some other issue in Multiple choice with comments html produced

  1. No html information (data-XX for example) about checkbox checked when comment or not (the 2 em_tip have .em_commented_checkbox class only)
  2. No html information about the script is active or not.

Can be fixed extend question answers.twig file, but think I think it's better to have it in core.

Issue History

Date Modified Username Field Change
2019-06-24 09:54 DenisChenu New Issue
2019-06-24 09:58 DenisChenu Note Added: 52493