修改admin中js与html中的问题

This commit is contained in:
hohoTT
2015-08-17 16:31:22 +08:00
parent 164e44b398
commit 1790945a3e
8 changed files with 15 additions and 7 deletions

View File

@@ -15,6 +15,10 @@ require(["jquery", "avalon", "editor", "uploader", "bsAlert", "csrfToken", "tagE
bsAlert("题目描述不能为空!");
return false;
}
if (vm.timeLimit < 1000 || vm.timeLimit > 5000) {
bsAlert("保证时间限制是一个1000-5000的合法整数");
return false;
}
if (vm.samples.length == 0) {
bsAlert("请至少添加一组样例!");
return false;