diff options
author | ttt | 2017-05-13 00:29:47 +0530 |
---|---|---|
committer | ttt | 2017-05-13 00:29:47 +0530 |
commit | abf599be33b383a6a5baf9493093b2126a622ac8 (patch) | |
tree | 4c5ab6e0d935d5e65fabcf0258e4a00dd20a5afa /production_static_files/yaksh/js/show_question.js | |
download | SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.gz SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.bz2 SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.zip |
added all server files
Diffstat (limited to 'production_static_files/yaksh/js/show_question.js')
-rw-r--r-- | production_static_files/yaksh/js/show_question.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/production_static_files/yaksh/js/show_question.js b/production_static_files/yaksh/js/show_question.js new file mode 100644 index 0000000..e3ed1cc --- /dev/null +++ b/production_static_files/yaksh/js/show_question.js @@ -0,0 +1,39 @@ +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; +} |