Commit 607a17e1 by Alan Boudreault

removed incomplete mark on page load

parent 9ad20bbf
......@@ -89,6 +89,10 @@ function MentoringBlock(runtime, element) {
});
if (submit_dom.length) {
/* On page load, remove the incomplete mark */
if ($('.progress', element).data('completed') === "False")
$('.progress', element).data('completed', null)
renderProgress();
}
......
<script type="text/template" id="xblock-progress-template">
<% if (completed === "True") {{ %>
<i class="icon-ok icon-2x checkmark-correct"></i>
<% }} else {{ %>
<i class="icon-exclamation icon-2x checkmark-incorrect"></i>
<i class="icon-ok icon-2x checkmark-correct"></i>
<% }} else if (completed === "False") {{ %>
<i class="icon-exclamation icon-2x checkmark-incorrect"></i>
<% }} %>
</script>
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