summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/show_quiz.js
blob: db48a37afccefd20dd33328b6c71c0ed40f5795a (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 my_confirm(frm)
      {
	   var r = confirm("Are you Sure ?");
	   if(r==false)
	   {  
		for(i=0;i<frm.quiz.length;i++)
		{
			frm.quiz[i].checked=false;
		}
		location.replace("{{URL_ROOT}}/exam/manage/showquiz");
	   }
      }
      function confirm_edit(frm)
      {
	   var n = 0;
	   for (var i =0;i<frm.quiz.length;i++)
	   {
		if (frm.quiz[i].checked == false)
			n = n + 1 ;
	   }
	   if(n == frm.quiz.length)
			location.replace("{{URL_ROOT}}/exam/manage/showquiz");
      }