diff options
author | maheshgudi | 2017-01-28 01:20:11 +0530 |
---|---|---|
committer | maheshgudi | 2017-01-28 01:21:52 +0530 |
commit | 5e7d7190a20ac3eb83ad5dd5e58fa216533eabad (patch) | |
tree | 42a1c755c1be20fbf88151d1e2c1a2de5d29ce6f /yaksh/static | |
parent | cc2395f9490bea7d4670094a8c40fdc6d583a891 (diff) | |
download | online_test-5e7d7190a20ac3eb83ad5dd5e58fa216533eabad.tar.gz online_test-5e7d7190a20ac3eb83ad5dd5e58fa216533eabad.tar.bz2 online_test-5e7d7190a20ac3eb83ad5dd5e58fa216533eabad.zip |
added select all to remove all trial papers
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/moderator_dashboard.js | 14 |
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 |