Commit 1a8fde10 by Muhammad Shoaib

1 ) added the condition on the attempts section. If there is no attempts then…

1 ) added the condition on the attempts section. If there is no attempts then the header section shouldn't be visible.
2) accordion pane content behavior fix
parent 7ab4c451
...@@ -123,7 +123,6 @@ var edx = edx || {}; ...@@ -123,7 +123,6 @@ var edx = edx || {};
if (this.template !== null) { if (this.template !== null) {
var html = this.template({proctored_exam_allowances: this.collection.toJSON()}); var html = this.template({proctored_exam_allowances: this.collection.toJSON()});
this.$el.html(html); this.$el.html(html);
this.$el.show();
} }
}, },
showAddModal: function (event) { showAddModal: function (event) {
......
...@@ -125,7 +125,6 @@ var edx = edx || {}; ...@@ -125,7 +125,6 @@ var edx = edx || {};
_.extend(data, viewHelper); _.extend(data, viewHelper);
var html = this.template(data); var html = this.template(data);
this.$el.html(html); this.$el.html(html);
this.$el.show();
} }
}, },
onRemoveAttempt: function (event) { onRemoveAttempt: function (event) {
......
...@@ -75,6 +75,8 @@ ...@@ -75,6 +75,8 @@
</ul> </ul>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<% var is_proctored_attempts = proctored_exam_attempts.length !== 0 %>
<% if (is_proctored_attempts) { %>
<table class="exam-attempts-table"> <table class="exam-attempts-table">
<thead> <thead>
<tr class="exam-attempt-headings"> <tr class="exam-attempt-headings">
...@@ -117,5 +119,6 @@ ...@@ -117,5 +119,6 @@
<% }); %> <% }); %>
</tbody> </tbody>
</table> </table>
<%} %>
</section> </section>
</div> </div>
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