From 6fc34f0ad021022dbedef6a8a9d17e1adcafe2c2 Mon Sep 17 00:00:00 2001 From: cxt Date: Mon, 5 Jun 2017 16:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E8=AE=BE=E7=BD=AE=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=8F=AD=E7=BA=A7=E5=90=8D=E7=A7=B0=EF=BC=8C=E6=A1=86?= =?UTF-8?q?=E5=86=85=E4=BE=8B=E5=AD=90=E4=B8=8E=E6=A1=86=E5=A4=96=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E4=B8=80=E8=87=B4=EF=BC=8C=E8=AF=B7=E6=8C=89?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=BC=A0=E5=9B=BE=E8=BF=9B=E8=A1=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/new.html.erb | 5 ++++- app/views/courses/settings.html.erb | 5 ++++- public/javascripts/edu/application.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/courses/new.html.erb b/app/views/courses/new.html.erb index a61cdf812..9384b5215 100644 --- a/app/views/courses/new.html.erb +++ b/app/views/courses/new.html.erb @@ -29,9 +29,12 @@
  • - +
    班级名称不能为空且至少有两个字符 +
    +
  • 正确示例:软件工程计算机系2016秋季A班
  • +
  • 错误示例:计算机系2016秋季A班
  • diff --git a/app/views/courses/settings.html.erb b/app/views/courses/settings.html.erb index 22f5c834b..dac8de94a 100644 --- a/app/views/courses/settings.html.erb +++ b/app/views/courses/settings.html.erb @@ -50,9 +50,12 @@
  • - +
    班级名称不能为空且至少有两个字符 +
    +
  • 正确示例:软件工程计算机系2016秋季A班
  • +
  • 错误示例:计算机系2016秋季A班
  • diff --git a/public/javascripts/edu/application.js b/public/javascripts/edu/application.js index 246c22ff4..98beeaee7 100644 --- a/public/javascripts/edu/application.js +++ b/public/javascripts/edu/application.js @@ -576,7 +576,7 @@ function regex_course_name(str) syl_title = $("#"+str+"_syllabus_id").find("option:selected").text(); if(name.length < 2) { - $("#"+str+"_course_name_notice").html('请班级名称不能为空且至少有两个字符'); + $("#"+str+"_course_name_notice").html('班级名称不能为空且至少有两个字符'); $("#"+str+"_course_name_notice").show(); return false; }