summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-01-31 16:59:27 +0530
committerGitHub2017-01-31 16:59:27 +0530
commita64b9c30f2cd4554734bba16b0aad7647475000d (patch)
treed9e95f2b4a76be0a174fd9170b12ec55018fbb63 /yaksh/static
parent5099da0b5a0d037887fa678a5c8e08614ad4a611 (diff)
parent146c6c351e4921bc8cacf46d1092619a10bc6e8f (diff)
downloadonline_test-a64b9c30f2cd4554734bba16b0aad7647475000d.tar.gz
online_test-a64b9c30f2cd4554734bba16b0aad7647475000d.tar.bz2
online_test-a64b9c30f2cd4554734bba16b0aad7647475000d.zip
Merge pull request #187 from maheshgudi/mcq_bugfix
Course related bugfixes
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/moderator_dashboard.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/moderator_dashboard.js b/yaksh/static/yaksh/js/moderator_dashboard.js
new file mode 100644
index 0000000..e40e67e
--- /dev/null
+++ b/yaksh/static/yaksh/js/moderator_dashboard.js
@@ -0,0 +1,14 @@
+$(document).ready(function(){
+$(".selectall").change(function(){
+ if($(this).prop("checked")) {
+ $("#trial input:checkbox").each(function(index, element) {
+ $(this).prop('checked', true);
+ });
+ }
+ else {
+ $("#trial input:checkbox").each(function(index, element) {
+ $(this).prop('checked', false);
+ });
+ }
+ });
+});