新建课程报404
This commit is contained in:
parent
320c3881ef
commit
d232a5241e
|
@ -9,7 +9,7 @@
|
|||
<input type="password" style="display: none"/> <!--阻止表单自动填充 -->
|
||||
<label><span class="c_red">*</span> <%= l(:label_tags_course_name)%> :</label>
|
||||
<input type="text" name="course[name]" id="course_name" class="courses_input" maxlength="100" onkeyup="regex_course_name();">
|
||||
<span class="c_red" id="course_name_notice" style="display: none;">课程名称不能为空</span>
|
||||
<span class="c_red" id="course_name_notice" style="display: none;">课程名称不能为空且至少有两个字符</span>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li class="ml45">
|
||||
|
|
|
@ -76,7 +76,7 @@ function hidden_homework_score_form()
|
|||
function regex_course_name()
|
||||
{
|
||||
var name = $.trim($("#course_name").val());
|
||||
if(name.length == 0)
|
||||
if(name.length < 2)
|
||||
{
|
||||
$("#course_name_notice").show();
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue