Last active
September 16, 2015 01:59
-
-
Save philipmadeley/6360387bf68021ccc501 to your computer and use it in GitHub Desktop.
input_checked_or_row_hover
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() { | |
$('.table-list tr').click(function(e){ | |
if(e.target.type !== 'checkbox') { | |
$(':checkbox', this).trigger('click'); | |
} | |
}); | |
var $action = $(".action-btn").hide(), | |
$inputs = $('.table-list input').click(function() { | |
$action.toggle( $inputs.closest('input:checkbox').is(":checked") ); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment