Commit 0deadf7f by Will Daly

Add collapse/expand for grade step

parent af5afa34
......@@ -249,7 +249,12 @@ OpenAssessment.BaseUI.prototype = {
var ui = this;
this.server.render('grade').done(
function(html) {
// Load the HTML
$('#openassessment__grade', ui.element).replaceWith(html);
// Install a click handler for collapse/expand
var sel = $('#openassessment__grade', ui.element);
ui.setUpCollapseExpand(sel);
}
).fail(function(errMsg) {
ui.showLoadError('grade', errMsg);
......
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