修改《学生列表中重名的班名提示报错》

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2015-01-09 10:22:30 +08:00
parent 9bbc8d64eb
commit 2dc626b595
1 changed files with 7 additions and 6 deletions

View File

@ -2,15 +2,17 @@
function check_groupname() {
var $group_name = $('#group_name');
$.get(
$.get(
'<%=valid_ajax_course_path%>',
{ valid: "name",
value: this.value },
value: document.getElementById('group_name').value },
function (data) {
if (!data.valid) {
alert('<%= l(:label_groupname_repeat) %>');
alert(data.message);
}
});
}
@ -46,10 +48,9 @@
}
function validate_add_group() {
value1 = document.getElementById('group_name').value;
check_groupname();
validate_groupname(value1);
validate_groupname_null(value1);
}
</script>