use jquery for error msg in course_about

This commit is contained in:
ichuang
2012-08-06 14:19:45 -04:00
parent 871ed954be
commit 6f894c816c

View File

@@ -20,7 +20,7 @@
if(json.success) {
location.href="${reverse('dashboard')}";
}else{
document.getElementById('register_message').innerHTML = "<p><font color='red'>" + json.error + "</font></p>";
$('#register_message).html("<p><font color='red'>" + json.error + "</font></p>")
}
});
})(this)