Skip to content
Snippets Groups Projects
Commit 764c20eb authored by Bridger Maxwell's avatar Bridger Maxwell
Browse files

Fixed enrollment issue where submission form was automatically sent when it opened on about page.

parent f337baed
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
%if registered:
<span class="register disabled">You are registered for this course (${course.number}).</span>
%else:
<a href="#" class="register">Register for ${course.number}</a>
<a href="#" class="register submit_registration">Register for ${course.number}</a>
%endif
%else:
<a href="#signup-modal" class="register" rel="leanModal" data-notice="You must Sign Up in order to register">Register for ${course.number}</a>
......@@ -117,7 +117,7 @@
</div>
<script type="text/javascript">
(function() {
$(".register").click(function() {
$(".submit_registration").click(function() {
$("#enroll_form").submit();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment