From a020ab8cd361e6061560f81773bdc0292ad100fe Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 27 Sep 2016 14:27:32 +0800 Subject: [PATCH] =?UTF-8?q?Issue=E5=AF=BC=E5=87=BAexcel=E5=B8=A6html?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- app/views/issues/index.html.erb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8563f6f02..573a7ba1f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -108,7 +108,7 @@ module ApplicationHelper sheet1[count_row,0] = issue.id sheet1[count_row,1] = issue_tracker_change(issue.tracker_id) sheet1[count_row,2] = issue.subject - sheet1[count_row,3] = issue.description + sheet1[count_row,3] = (issue.description.gsub(/<\/?.*?>/,"")).html_safe sheet1[count_row,4] = issue_status_change(issue.status_id) sheet1[count_row,5] = issue.assigned_to.try(:show_name) sheet1[count_row,6] = issue_priority_change(issue.priority_id) diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 8552a65b2..271fb16c6 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -60,9 +60,10 @@ function switch_assign_to(assign) { var assign = "option[value =" + assign + "]"; $("#issues_type_2").click(function(){ - $("select[id='author_id']").val(''); + }); $("select[id='assigned_to_id']").find(assign).attr("selected", "selected"); + $("select[id='author_id']").val(''); remote_function(); }