Skip to content

Instantly share code, notes, and snippets.

@MiLk
Created May 15, 2012 16:32
Show Gist options
  • Save MiLk/2703089 to your computer and use it in GitHub Desktop.
Save MiLk/2703089 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$( "#liste" ).resizable({ minHeight: 10, maxHeight: 1000, minWidth: 10, maxWidth: 1000, containment: "parent" });
$('#liste tbody tr').click(function() {
var box = $(this).find(':checkbox');
if(box.attr('checked') == "checked" || box.attr('checked') == true)
{
$(this).removeClass('active');
box.attr('checked', false);
}
else
{
$(this).addClass('active');
box.attr('checked', true);
}
});
});
function Check_all(state)
{
$('#liste tbody tr').find(':checkbox').attr('checked', state);
if(state) $('#liste tbody tr').addClass('active');
else $('#liste tbody tr').removeClass('active');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment