Fix issue with iframe redirect

This commit is contained in:
Will Daly
2014-12-04 08:46:32 -05:00
parent 150fddd39d
commit 2ef7829fb7

View File

@@ -22,7 +22,9 @@
var email_opt_in = $("input[name='email_opt_in']").val(),
current_href = $("a.register").attr("href");
$("a.register").attr("href", current_href + "&email_opt_in=" + email_opt_in)
if (current_href) {
$("a.register").attr("href", current_href + "&email_opt_in=" + email_opt_in)
}
$("#class_enroll_form").submit();
event.preventDefault();