Browse Source

demos : relayout : add clearfix; use .click()

pull/96/head
David DeSandro 14 years ago
parent
commit
c80da7a912
  1. 4
      _posts/demos/2010-12-31-relayout.html

4
_posts/demos/2010-12-31-relayout.html

@ -11,7 +11,7 @@ related: methods
</section> </section>
<section id="options"> <section id="options">
<ul> <ul class="clearfix">
<li id="toggle-sizes"><a href="#toggle-sizes">Toggle variable sizes</a></li> <li id="toggle-sizes"><a href="#toggle-sizes">Toggle variable sizes</a></li>
</ul> </ul>
</section> </section>
@ -40,7 +40,7 @@ related: methods
}); });
// change size of clicked element // change size of clicked element
$container.find('.element').live('click', function(){ $container.find('.element').click(function(){
$(this).toggleClass('large'); $(this).toggleClass('large');
$container.isotope('reLayout'); $container.isotope('reLayout');
}); });

Loading…
Cancel
Save