Created
October 6, 2014 01:36
-
-
Save markreid/d6031a79a3a91e9fa2bf to your computer and use it in GitHub Desktop.
github diffs - add a 'hide' button to each file
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
$('#files .meta .actions').append('<button class="btn-hide minibutton tooltipped tooltipped-n" aria-label="Hide this file">Hide</button>'); | |
$('#files .meta .actions .btn-hide').on('click', function(){ | |
$(this).toggleClass('selected').closest('div.file').find('.data').toggleClass('hidden'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment