Commit 27e5c17e by Will Daly

Merge pull request #6145 from edx/will/fix-mktg-iframe-redirect

Fix issue with iframe redirect
parents dd77ec0f 2ef7829f
......@@ -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();
......
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