diff --git a/app/views/poll/_commit_alert.html.erb b/app/views/poll/_commit_alert.html.erb index 46982006c..76bbda416 100644 --- a/app/views/poll/_commit_alert.html.erb +++ b/app/views/poll/_commit_alert.html.erb @@ -1,36 +1,12 @@
<% if status == 0 %> -

提交成功!

- <%= link_to "确定", poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course'),:style => 'height: 28px; -display: block; -width: 80px; -color: #fff; -background: #15bccf; -text-align: center; -padding-top: 4px; -float: left; -margin-right: 10px;'%> +

提交成功!

+ <%= link_to "确定", poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course'),:class => 'commit'%> <% elsif status == 1 %> -

您还有尚未作答的题目请完成后在提交!

- <%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:style => 'height: 28px; -display: block; -width: 80px; -color: #fff; -background: #15bccf; -text-align: center; -padding-top: 4px; -float: left; -margin-right: 10px;'%> +

您还有尚未作答的题目请完成后在提交!

+ <%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%> <% else %> -

发生未知错误,请检查您的网络。

- <%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:style => 'height: 28px; -display: block; -width: 80px; -color: #fff; -background: #15bccf; -text-align: center; -padding-top: 4px; -float: left; -margin-right: 10px;'%> +

发生未知错误,请检查您的网络。

+ <%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%> <% end %>
diff --git a/app/views/poll/commit_poll.js.erb b/app/views/poll/commit_poll.js.erb index 185967513..f7a1b56fe 100644 --- a/app/views/poll/commit_poll.js.erb +++ b/app/views/poll/commit_poll.js.erb @@ -1,6 +1,6 @@ $('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert',:locals => {:status => @status}) %>'); -showModal('ajax-modal', '513px'); -$('#ajax-modal').css('height','200px'); +showModal('ajax-modal', '400px'); +$('#ajax-modal').css('height','100px'); $('#ajax-modal').siblings().remove(); $('#ajax-modal').before("" + ""); diff --git a/app/views/poll/show.html.erb b/app/views/poll/show.html.erb index 4f9bc75aa..24a04ac8d 100644 --- a/app/views/poll/show.html.erb +++ b/app/views/poll/show.html.erb @@ -5,7 +5,19 @@ 问卷调查_问卷页面 <%= stylesheet_link_tag 'polls', :media => 'all' %>