From 8e017425cfd77f344dd22d8fcc121a4bdc51627b Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 17 Jan 2015 13:55:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=B9=E5=87=BA=E6=A1=86?=
=?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/poll/_poll_form.html.erb | 7 ++--
app/views/poll/_poll_submit.html.erb | 50 +++++++++-------------------
public/stylesheets/polls.css | 14 ++++++++
3 files changed, 33 insertions(+), 38 deletions(-)
diff --git a/app/views/poll/_poll_form.html.erb b/app/views/poll/_poll_form.html.erb
index de5e2e713..49e04a3ba 100644
--- a/app/views/poll/_poll_form.html.erb
+++ b/app/views/poll/_poll_form.html.erb
@@ -58,13 +58,14 @@
function poll_submit()
{
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'poll_submit', locals: { poll: @poll}) %>');
- showModal('ajax-modal', '500px');
- $('#ajax-modal').css('height','180px');
+ showModal('ajax-modal', '310px');
+ $('#ajax-modal').css('height','100px');
$('#ajax-modal').siblings().remove();
$('#ajax-modal').before("" +
"");
+ $('#ajax-modal').parent().removeClass("alert_praise");
$('#ajax-modal').parent().css("top","").css("left","");
- $('#ajax-modal').parent().addClass("anonymos");
+ $('#ajax-modal').parent().addClass("popbox_polls");
}
diff --git a/app/views/poll/_poll_submit.html.erb b/app/views/poll/_poll_submit.html.erb
index 0f9e96b73..cdc41dd9d 100644
--- a/app/views/poll/_poll_submit.html.erb
+++ b/app/views/poll/_poll_submit.html.erb
@@ -1,28 +1,6 @@