From d232a5241e807aa974605ad2e5083d3ac3b36ed4 Mon Sep 17 00:00:00 2001 From: cxt Date: Wed, 11 May 2016 11:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E8=AF=BE=E7=A8=8B=E6=8A=A540?= =?UTF-8?q?4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/new.html.erb | 2 +- public/javascripts/course.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/courses/new.html.erb b/app/views/courses/new.html.erb index 9875ec9b7..dc2509c77 100644 --- a/app/views/courses/new.html.erb +++ b/app/views/courses/new.html.erb @@ -9,7 +9,7 @@ - +
  • diff --git a/public/javascripts/course.js b/public/javascripts/course.js index 46b8b0e54..ad7918779 100644 --- a/public/javascripts/course.js +++ b/public/javascripts/course.js @@ -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; @@ -1431,4 +1431,4 @@ function submit_course_feedback() { function show_more_tool(){ $('#navContentCourse').css('display', 'block'); -} +}