Added JSInput template to Studio and a sop attribute to JSInput. Only if it's...
Added JSInput template to Studio and a sop attribute to JSInput. Only if it's set to false, as in JSInput's template, will JSChannel be used to bypass it. In all other cases (attribute not present or set to something else), SOP is enforced. Compatibility with jsVGL is therefore maintained. Multiple JSInput are supported in a vertical. Also, save button now functions. [BLD-523, BLD-556, BLD-568]
Showing
- common/lib/capa/capa/inputtypes.py 10 additions, 7 deletionscommon/lib/capa/capa/inputtypes.py
- common/lib/capa/capa/templates/jsinput.html 6 additions, 2 deletionscommon/lib/capa/capa/templates/jsinput.html
- common/lib/xmodule/xmodule/js/src/capa/display.coffee 17 additions, 5 deletionscommon/lib/xmodule/xmodule/js/src/capa/display.coffee
- common/lib/xmodule/xmodule/templates/problem/jsinput_response.yaml 44 additions, 0 deletions...b/xmodule/xmodule/templates/problem/jsinput_response.yaml
- common/static/js/capa/fixtures/jsinput.html 50 additions, 0 deletionscommon/static/js/capa/fixtures/jsinput.html
- common/static/js/capa/spec/jsinput_spec.js 21 additions, 61 deletionscommon/static/js/capa/spec/jsinput_spec.js
- common/static/js/capa/spec/mainfixture.html 0 additions, 118 deletionscommon/static/js/capa/spec/mainfixture.html
- common/static/js/capa/src/jschannel.js 788 additions, 0 deletionscommon/static/js/capa/src/jschannel.js
- common/static/js/capa/src/jsinput.js 138 additions, 117 deletionscommon/static/js/capa/src/jsinput.js
- common/static/js_test.yml 3 additions, 0 deletionscommon/static/js_test.yml
- docs/data/source/course_data_formats/jsinput.rst 0 additions, 6 deletionsdocs/data/source/course_data_formats/jsinput.rst
Loading
Please register or sign in to comment