Created
May 15, 2012 16:32
-
-
Save MiLk/2703089 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(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