mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
380 B
14 lines
380 B
|
|
// switches selected class on buttons |
|
$('#options').find('.option-set a').click(function(){ |
|
var $this = $(this); |
|
|
|
// don't proceed if already selected |
|
if ( $this.hasClass('selected') ) { |
|
return; |
|
} |
|
|
|
$this.parents('.option-set').find('.selected').removeClass('selected'); |
|
$this.addClass('selected'); |
|
|
|
});
|
|
|