summaryrefslogtreecommitdiffstats
path: root/log/js/log.js
blob: 42ae1b4c852caf777a90668ed0ebb07b14e1abb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$(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);
			}
		}
	});
	$('#removeBeforeDate').datepicker({
		dateFormat:'MM d, yy',
	});
});