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