summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-11-18 16:24:02 +0530
committerGitHub2016-11-18 16:24:02 +0530
commitd88708631a568c37ae56602407a29001d97a982f (patch)
treef097d00b3378a7948e6289cdce733a37198bee24 /yaksh/static
parent6f2d4829d15d763177328400d0a1b857b983a770 (diff)
parent95c8c368d9f34cb05c5edd90f8697ec5d00c5a92 (diff)
downloadonline_test-d88708631a568c37ae56602407a29001d97a982f.tar.gz
online_test-d88708631a568c37ae56602407a29001d97a982f.tar.bz2
online_test-d88708631a568c37ae56602407a29001d97a982f.zip
Merge pull request #158 from adityacp/fix_file_upload_and_tooltip
Fix file upload and tooltip
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/course.js24
-rw-r--r--yaksh/static/yaksh/js/question_filter.js8
2 files changed, 16 insertions, 16 deletions
diff --git a/yaksh/static/yaksh/js/course.js b/yaksh/static/yaksh/js/course.js
index 3a21f0d..5b79e68 100644
--- a/yaksh/static/yaksh/js/course.js
+++ b/yaksh/static/yaksh/js/course.js
@@ -1,37 +1,37 @@
$(document).ready(function(){
-$(".checkall").click( function(){
- if($(this).attr("checked")) {
+$(".checkall").change( function(){
+ if($(this).prop("checked")) {
$("#enroll-all input:checkbox").each(function(index, element) {
- $(this).attr('checked', true);
+ $(this).prop('checked', true);
});
}
else {
$("#enroll-all input:checkbox").each(function(index, element) {
- $(this).attr('checked', false);
+ $(this).prop('checked', false);
});
}
});
-$(".enroll").click( function(){
- if($(this).attr("checked")) {
+$(".enroll").change( function(){
+ if($(this).prop("checked")) {
$("#enroll input:checkbox").each(function(index, element) {
- $(this).attr('checked', true);
+ $(this).prop('checked', true);
});
}
else {
$("#enroll input:checkbox").each(function(index, element) {
- $(this).attr('checked', false);
+ $(this).prop('checked', false);
});
}
});
-$(".reject").click( function(){
- if($(this).attr("checked")) {
+$(".reject").change( function(){
+ if($(this).prop("checked")) {
$("#reject input:checkbox").each(function(index, element) {
- $(this).attr('checked', true);
+ $(this).prop('checked', true);
});
}
else {
$("#reject input:checkbox").each(function(index, element) {
- $(this).attr('checked', false);
+ $(this).prop('checked', false);
});
}
});
diff --git a/yaksh/static/yaksh/js/question_filter.js b/yaksh/static/yaksh/js/question_filter.js
index 065b06b..aa3a229 100644
--- a/yaksh/static/yaksh/js/question_filter.js
+++ b/yaksh/static/yaksh/js/question_filter.js
@@ -32,15 +32,15 @@ $(document).ready(function(){
question_filter()
});
- $("#checkall").live("click", function(){
- if($(this).attr("checked")) {
+ $("#checkall").change(function(){
+ if($(this).prop("checked")) {
$("#filtered-questions input:checkbox").each(function(index, element) {
- $(this).attr('checked', true);
+ $(this).prop('checked', true);
});
}
else {
$("#filtered-questions input:checkbox").each(function(index, element) {
- $(this).attr('checked', false);
+ $(this).prop('checked', false);
});
}
});