View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
14999Bug reportsTheme editorpublic2019-06-24 09:58
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version3.17.x 
Summary14999: Unable to unregister or replace script file
Description

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

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

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.
Bug heat2
Complete LimeSurvey version number (& build)3.17.5 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

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