summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/show_question.js
blob: ccacbdd623e831885d1607aded34408976e616ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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");
      }