summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/show_question.js
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/static/exam/js/show_question.js')
-rw-r--r--testapp/static/exam/js/show_question.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/testapp/static/exam/js/show_question.js b/testapp/static/exam/js/show_question.js
deleted file mode 100644
index e3ed1cc..0000000
--- a/testapp/static/exam/js/show_question.js
+++ /dev/null
@@ -1,39 +0,0 @@
-function confirm_delete(frm)
-{
- var n=0;
- for (var i =0;i<frm.question.length;i++)
- {
- if (frm.question[i].checked == false)
- n = n + 1 ;
- }
- if(n==frm.question.length)
- {
- alert("Please Select at least one Question");
- return false;
- }
- var r = confirm("Are you Sure ?");
- if(r==false)
- {
- for(i=0;i<frm.question.length;i++)
- {
- frm.question[i].checked=false;
- }
- return false;
- }
-}
-function confirm_edit(frm)
-{
- var n = 0;
- for (var i =0;i<frm.question.length;i++)
- {
- if (frm.question[i].checked == false)
- n = n + 1 ;
- }
- if(n == frm.question.length)
- {
- alert("Please Select at least one Question");
- return false;
- }
- else
- return true;
-}