Commit c09da60f by Jay Zoldak

The enrollment_action value enroll should not be translated.

parent a7568fbf
......@@ -42,9 +42,9 @@
).css("display", "block");
}
});
%else:
$('#class_enroll_form').on('ajax:complete', function(event, xhr) {
if(xhr.status == 200) {
location.href = "${reverse('dashboard')}";
......@@ -58,8 +58,8 @@
});
%endif
})(this)
</script>
......@@ -219,10 +219,10 @@
<form id="class_enroll_form" method="post" data-remote="true" action="${reverse('change_enrollment')}">
<fieldset class="enroll_fieldset">
<input name="course_id" type="hidden" value="${course.id}">
<input name="enrollment_action" type="hidden" value="${_("enroll")}">
<input name="enrollment_action" type="hidden" value="enroll">
</fieldset>
<div class="submit">
<input name="submit" type="submit" value="${_("enroll")}">
<input name="submit" type="submit" value="enroll">
</div>
</form>
</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