Commit 0272b84f by Dmitry Viskov Committed by Eric Fischer

Open Response Assessment tab for Instructor Dashboard - bugfix (prevent loading…

Open Response Assessment tab for Instructor Dashboard - bugfix (prevent loading ORA Block more than one time)
parent 4af499cd
...@@ -7,11 +7,15 @@ ...@@ -7,11 +7,15 @@
function OpenResponseAssessmentBlock($section) { function OpenResponseAssessmentBlock($section) {
this.$section = $section; this.$section = $section;
this.$section.data('wrapper', this); this.$section.data('wrapper', this);
this.initialized = false;
} }
OpenResponseAssessmentBlock.prototype.onClickTitle = function() { OpenResponseAssessmentBlock.prototype.onClickTitle = function() {
var block = this.$section.find('.open-response-assessment'); var block = this.$section.find('.open-response-assessment');
XBlock.initializeBlock($(block).find('.xblock')[0]); if (!this.initialized) {
this.initialized = true;
XBlock.initializeBlock($(block).find('.xblock')[0]);
}
}; };
return OpenResponseAssessmentBlock; return OpenResponseAssessmentBlock;
......
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