summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
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..87d039c
--- /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);
+ });
+ }
+ });
+}); \ No newline at end of file