Merge pull request #5499 from cpennington/cale/fix-js-typo

Fix typo in #5392 (encodeURICoponont)
This commit is contained in:
Nimisha Asthagiri
2014-10-06 15:44:38 -04:00

View File

@@ -70,7 +70,7 @@
location.href = "${reverse('dashboard')}";
} else if (xhr.status == 403) {
location.href = "${reverse('signin_user')}?course_id=" +
encodeURIComponont($("#unenroll_course_id").val()) + "&enrollment_action=unenroll";
encodeURIComponent($("#unenroll_course_id").val()) + "&enrollment_action=unenroll";
} else {
$('#unenroll_error').html(
xhr.responseText ? xhr.responseText : "${_("An error occurred. Please try again later.")}"