diff options
author | Prabhu Ramachandran | 2013-04-27 15:28:28 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2013-04-27 15:28:28 +0530 |
commit | 8b6ac259503323bc3d8333382d3769e5d10f162a (patch) | |
tree | 5d260a3db043492ef731b4241cf0f07563591743 /testapp/static/exam/js/show_quiz.js | |
parent | fd044e4a9f08366c9425cb241b7452da2ba904e1 (diff) | |
parent | 5c7f66806e4be50985655b7c12bf3190ee91ae46 (diff) | |
download | online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.tar.gz online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.tar.bz2 online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.zip |
Merge branch 'model_changes' of ...
https://github.com/hardythe1/online_test into master.
Conflicts:
production.cfg
testapp/production.py
Diffstat (limited to 'testapp/static/exam/js/show_quiz.js')
-rw-r--r-- | testapp/static/exam/js/show_quiz.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testapp/static/exam/js/show_quiz.js b/testapp/static/exam/js/show_quiz.js new file mode 100644 index 0000000..2e6e2de --- /dev/null +++ b/testapp/static/exam/js/show_quiz.js @@ -0,0 +1,43 @@ +function confirm_delete(frm) +{ + var n=0; + quiz = document.getElementsByName('quiz'); + for (var i =0;i<quiz.length;i++) + { + if (quiz[i].checked == false) + n = n + 1 ; + } + if(n==quiz.length) + { + alert("Please Select at least one Quiz"); + return false; + } + var r = confirm("Are you Sure ?"); + if(r==false) + { + for(i=0;i<quiz.length;i++) + { + quiz[i].checked=false; + } + return false; + } +} +function confirm_edit(frm) +{ + var n = 0; + quiz = document.getElementsByName('quiz'); + for (var i =0;i<quiz.length;i++) + { + if (quiz[i].checked == false) + n = n + 1 ; + } + if(n == quiz.length) + { + alert("Please Select at least one Question"); + return false; + } + else + return true; + + +} |