From d13ab7aa5d7a7f86147e7ec370d0e43582175c50 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 28 Jul 2015 16:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=A9=BA=E7=99=BD=E5=A4=84?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E8=AE=A9=E5=BC=B9=E5=87=BA=E6=A1=86=E9=9A=90?= =?UTF-8?q?=E8=97=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/_show_MC.html.erb | 8 ++++---- app/views/poll/_show_MCQ.html.erb | 8 ++++---- app/views/poll/_show_mulit.html.erb | 8 ++++---- app/views/poll/_show_single.html.erb | 8 ++++---- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/app/views/poll/_poll_form.html.erb b/app/views/poll/_poll_form.html.erb index 6d1f3b6bb..d784edab3 100644 --- a/app/views/poll/_poll_form.html.erb +++ b/app/views/poll/_poll_form.html.erb @@ -16,7 +16,12 @@ $(function(){ }); }) - +function dismiss(quest_type,quest_id){ + popWindow = $("#div_"+quest_type+"_"+quest_id); + if(popWindow){ + popWindow.css('display', 'none'); + } +} function chooseQuestionType(quest_type,quest_id){ //quest_type 分为 mc mcq single multi //quest_id 是quetion的id 下同 diff --git a/app/views/poll/_show_MC.html.erb b/app/views/poll/_show_MC.html.erb index 9c47894dc..901b98541 100644 --- a/app/views/poll/_show_MC.html.erb +++ b/app/views/poll/_show_MC.html.erb @@ -40,9 +40,9 @@ \ No newline at end of file diff --git a/app/views/poll/_show_MCQ.html.erb b/app/views/poll/_show_MCQ.html.erb index fb2c03080..f13cf17d3 100644 --- a/app/views/poll/_show_MCQ.html.erb +++ b/app/views/poll/_show_MCQ.html.erb @@ -36,9 +36,9 @@ \ No newline at end of file diff --git a/app/views/poll/_show_mulit.html.erb b/app/views/poll/_show_mulit.html.erb index ad01d0a3e..6c98b8257 100644 --- a/app/views/poll/_show_mulit.html.erb +++ b/app/views/poll/_show_mulit.html.erb @@ -25,9 +25,9 @@ \ No newline at end of file diff --git a/app/views/poll/_show_single.html.erb b/app/views/poll/_show_single.html.erb index f5846b6b7..68b93d244 100644 --- a/app/views/poll/_show_single.html.erb +++ b/app/views/poll/_show_single.html.erb @@ -23,9 +23,9 @@ \ No newline at end of file