Skip to content

Instantly share code, notes, and snippets.

@jpdevries
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpdevries/884b4eba2634131c6a51 to your computer and use it in GitHub Desktop.
Save jpdevries/884b4eba2634131c6a51 to your computer and use it in GitHub Desktop.
settings-table for modern browsers
$('.settings-table').each(function(){
var _that = $(this);
_that.find('tbody > tr:not(.setting-form)').on((!Modernizr.touch) ? 'focusin' : 'click',function(e){
$(this).toggleClass('open').siblings('.open').removeClass('open');
}).addClass('clickable');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment