summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/show_question.js
diff options
context:
space:
mode:
authorhardythe12012-03-22 16:56:22 +0530
committerhardythe12012-03-22 16:56:22 +0530
commitb1ba290f249d84989cb3cc38d018482794582a46 (patch)
treea0503ec456315e035c515b7dfb881e714a1d4599 /testapp/static/exam/js/show_question.js
parent4884af693bfb0b9bb70ed6b3d8489267a86d90f9 (diff)
downloadonline_test-b1ba290f249d84989cb3cc38d018482794582a46.tar.gz
online_test-b1ba290f249d84989cb3cc38d018482794582a46.tar.bz2
online_test-b1ba290f249d84989cb3cc38d018482794582a46.zip
Autocomplete tagging functionality
Diffstat (limited to 'testapp/static/exam/js/show_question.js')
-rw-r--r--testapp/static/exam/js/show_question.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/testapp/static/exam/js/show_question.js b/testapp/static/exam/js/show_question.js
new file mode 100644
index 0000000..ccacbdd
--- /dev/null
+++ b/testapp/static/exam/js/show_question.js
@@ -0,0 +1,23 @@
+function confirm_delete(frm)
+ {
+ var r = confirm("Are you Sure ?");
+ if(r==false)
+ {
+ for(i=0;i<frm.question.length;i++)
+ {
+ frm.question[i].checked=false;
+ }
+ location.replace("{{URL_ROOT}}/exam/manage/showquestion");
+ }
+ }
+ function confirm_edit(frm)
+ {
+ var n = 0;
+ for(i=0;i<frm.question.length;i++)
+ {
+ if(frm.question[i].checked==true)
+ n = n+1;
+ }
+ if(n==0)
+ location.replace("{{URL_ROOT}}/exam/manage/showquestion");
+ }