Skip to content
Snippets Groups Projects
Commit 5896fbd9 authored by Robin Appelman's avatar Robin Appelman
Browse files

make state of select all checkbox consistent

parent f1e78be4
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,16 @@ $(document).ready(function() {
$('td.selection input:checkbox').attr('checked', false);
});
$('td.selection input:checkbox').click(function() {
if(!$(this).attr('checked')){
$('#select_all').attr('checked',false);
}else{
if($('td.selection input:checkbox:checked').length==$('td.selection input:checkbox').length){
$('#select_all').attr('checked',true);
}
}
});
// Delete current file
$('#delete_single_file').click(function() {
filename = $('#file_menu').parents('tr:first').find('.filename:first').children('a:first').text();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment