Commit d9cf4f24 by Diana Huang

Scope the submission response to the correct form elements.

parent ed2853f6
...@@ -247,7 +247,7 @@ OpenAssessment.ResponseView.prototype = { ...@@ -247,7 +247,7 @@ OpenAssessment.ResponseView.prototype = {
array of strings: The current response texts. array of strings: The current response texts.
**/ **/
response: function(texts) { response: function(texts) {
var sel = $('.submission__answer__part__text__value', this.element); var sel = $('.response__submission .submission__answer__part__text__value', this.element);
if (typeof texts === 'undefined') { if (typeof texts === 'undefined') {
return sel.map(function() { return sel.map(function() {
return $.trim($(this).val()); return $.trim($(this).val());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment