summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authoradityacp2016-03-31 19:42:44 +0530
committeradityacp2016-04-15 14:01:51 +0530
commitc140d65ab1a3c4faa97789e08223d563cf283d25 (patch)
tree1604dc89ae0a7e66f18e4a6f8fde3eda7e5b54af /yaksh/static
parent234cf831861045796a7bcf4e08a46b0c38016f75 (diff)
downloadonline_test-c140d65ab1a3c4faa97789e08223d563cf283d25.tar.gz
online_test-c140d65ab1a3c4faa97789e08223d563cf283d25.tar.bz2
online_test-c140d65ab1a3c4faa97789e08223d563cf283d25.zip
changes in edit profile, enrollment, change password
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/course.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/course.js b/yaksh/static/yaksh/js/course.js
new file mode 100644
index 0000000..3a21f0d
--- /dev/null
+++ b/yaksh/static/yaksh/js/course.js
@@ -0,0 +1,38 @@
+$(document).ready(function(){
+$(".checkall").click( function(){
+ if($(this).attr("checked")) {
+ $("#enroll-all input:checkbox").each(function(index, element) {
+ $(this).attr('checked', true);
+ });
+ }
+ else {
+ $("#enroll-all input:checkbox").each(function(index, element) {
+ $(this).attr('checked', false);
+ });
+ }
+ });
+$(".enroll").click( function(){
+ if($(this).attr("checked")) {
+ $("#enroll input:checkbox").each(function(index, element) {
+ $(this).attr('checked', true);
+ });
+ }
+ else {
+ $("#enroll input:checkbox").each(function(index, element) {
+ $(this).attr('checked', false);
+ });
+ }
+ });
+$(".reject").click( function(){
+ if($(this).attr("checked")) {
+ $("#reject input:checkbox").each(function(index, element) {
+ $(this).attr('checked', true);
+ });
+ }
+ else {
+ $("#reject input:checkbox").each(function(index, element) {
+ $(this).attr('checked', false);
+ });
+ }
+ });
+});