From f8bf392149fbd086dcc0fd0ef004fcc4497ff409 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 27 Jul 2019 12:33:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E7=99=BE=E5=88=86=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/poll/pollStyle.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/poll/pollStyle.css b/public/react/src/modules/courses/poll/pollStyle.css index 360315e03..a486101cd 100644 --- a/public/react/src/modules/courses/poll/pollStyle.css +++ b/public/react/src/modules/courses/poll/pollStyle.css @@ -113,7 +113,7 @@ text-align: left; } .percentForm{ - width: 340px; + width: 330px; height: 11px; background: #F5F5F5; border-radius: 6px; From a491d38ab877a2cd421d6d1953fd723bc9f26600 Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Sat, 27 Jul 2019 12:36:36 +0800 Subject: [PATCH 2/4] fixbug --- app/controllers/polls_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/polls_controller.rb b/app/controllers/polls_controller.rb index 5aecaadb0..4b2b7dc61 100644 --- a/app/controllers/polls_controller.rb +++ b/app/controllers/polls_controller.rb @@ -911,7 +911,7 @@ class PollsController < ApplicationController end error_question = error_question.reject(&:blank?) if error_question.reject(&:blank?).length > 0 - normal_status(-1, "#{error_question.join("\n")}") + normal_status(-1, "#{error_question.map{|a| "

"+a+"

"}.join("")}") else poll_user_current = @poll.poll_users.find_by_group_ids(current_user.id).first poll_user_params = { From 4899c05c8319efa1526e88f6edade0236e88d859 Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Sat, 27 Jul 2019 12:39:00 +0800 Subject: [PATCH 3/4] fixubg --- app/controllers/polls_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/polls_controller.rb b/app/controllers/polls_controller.rb index 4b2b7dc61..c4d83bd8c 100644 --- a/app/controllers/polls_controller.rb +++ b/app/controllers/polls_controller.rb @@ -911,7 +911,7 @@ class PollsController < ApplicationController end error_question = error_question.reject(&:blank?) if error_question.reject(&:blank?).length > 0 - normal_status(-1, "#{error_question.map{|a| "

"+a+"

"}.join("")}") + normal_status(-1, "#{error_question.map{|a| "

"+a+"

"}.join("")}".html_safe) else poll_user_current = @poll.poll_users.find_by_group_ids(current_user.id).first poll_user_params = { From 2c8007b2d4f035cbb9fc6fee56c334554eef0e60 Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Sat, 27 Jul 2019 12:49:43 +0800 Subject: [PATCH 4/4] fixbug --- app/controllers/polls_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/polls_controller.rb b/app/controllers/polls_controller.rb index c4d83bd8c..79b7fbd16 100644 --- a/app/controllers/polls_controller.rb +++ b/app/controllers/polls_controller.rb @@ -911,7 +911,7 @@ class PollsController < ApplicationController end error_question = error_question.reject(&:blank?) if error_question.reject(&:blank?).length > 0 - normal_status(-1, "#{error_question.map{|a| "

"+a+"

"}.join("")}".html_safe) + normal_status(-1, word_wrap("#{error_question.join("\n")}")) else poll_user_current = @poll.poll_users.find_by_group_ids(current_user.id).first poll_user_params = {