nextcloud/log/js/log.js

26 lines
627 B
JavaScript
Raw Normal View History

2011-04-22 01:12:32 +04:00
$(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);
}
}
});
2011-06-07 23:48:21 +04:00
$('#removeBeforeDate').datepicker({
dateFormat:'MM d, yy',
});
});