From b94016b3bf7cc6c8a04153f9b619e2c8efccf85a Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 27 Jul 2017 10:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E8=AF=BE=E5=A0=82=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=EF=BC=8C=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B=E5=BD=92?= =?UTF-8?q?=E6=A1=A3=E5=90=8E=E5=86=8D=E7=82=B9=E5=87=BB=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=EF=BC=8C=E6=98=BE=E7=A4=BA=E7=9A=84=E6=95=B0=E6=8D=AE=E9=87=8F?= =?UTF-8?q?=E8=BF=98=E6=98=AF=E5=BD=92=E6=A1=A3=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/index.js.erb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/views/courses/index.js.erb b/app/views/courses/index.js.erb index 6f5412247..b5c7c6ca8 100644 --- a/app/views/courses/index.js.erb +++ b/app/views/courses/index.js.erb @@ -9,9 +9,7 @@ $("#courses_index_syllabuses_3").attr('href', '<%= courses_path(:select => "join $("#courses_index_syllabuses_4").show(); $("#courses_index_syllabuses_5").hide(); <% end %> -<% if @select == "end" %> - $("#all_syllabuses").html("<%= @syllabuses_num %>"); - $("#my_syllabuses").html("<%= @join_syllabuses_count + @create_syllabuses_count %>"); -<% end %> +$("#all_syllabuses").html("<%= @syllabuses_num %>"); +$("#my_syllabuses").html("<%= @join_syllabuses_count + @create_syllabuses_count %>"); $("#input_select_val").val('<%= @select %>'); $("#input_select_text").val('<%= @is_end %>'); \ No newline at end of file