summaryrefslogtreecommitdiffstats
path: root/log/js/log.js
diff options
context:
space:
mode:
Diffstat (limited to 'log/js/log.js')
-rw-r--r--log/js/log.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/log/js/log.js b/log/js/log.js
new file mode 100644
index 00000000000..47c20b3e860
--- /dev/null
+++ b/log/js/log.js
@@ -0,0 +1,21 @@
+$(document).ready(function() {
+ // Sets the select_all checkbox behaviour :
+ $('#all').click(function() {
+ if($(this).attr('checked')){
+ // Check all
+ $('input.action:checkbox').attr('checked', true);
+ }else{
+ // Uncheck all
+ $('input.action:checkbox').attr('checked', false);
+ }
+ });
+ $('input.action:checkbox').click(function() {
+ if(!$(this).attr('checked')){
+ $('#all').attr('checked',false);
+ }else{
+ if($('input.action:checkbox:checked').length==$('input.action:checkbox').length){
+ $('#all').attr('checked',true);
+ }
+ }
+ });
+}); \ No newline at end of file