From 49d88fe33b24ee3d05fb782848a99bb69be23da1 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 6 Jul 2011 19:32:53 -0400 Subject: [PATCH] tests : centered masonry : fixed --- _posts/tests/2011-05-18-centered-masonry.html | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/_posts/tests/2011-05-18-centered-masonry.html b/_posts/tests/2011-05-18-centered-masonry.html index b19b7e5..aa30722 100644 --- a/_posts/tests/2011-05-18-centered-masonry.html +++ b/_posts/tests/2011-05-18-centered-masonry.html @@ -23,12 +23,12 @@ category: tests

Etc

+
@@ -36,7 +36,7 @@ category: tests {% assign element = site.elements[elem_number] %} {% include element-partial.html %} {% endfor %} -
+ @@ -132,17 +132,20 @@ category: tests return $elem.find('.name').text(); } } + }); - {% include option-set-buttons.js %} + {% include option-set-buttons.js %} - {% include add-buttons.js %} + {% include add-buttons.js %} - {% include change-sizes.js %} + {% include change-sizes.js %} - $('#shuffle a').click(function(){ - $container.isotope('shuffle'); - return false; - }); + var $sortBy = $('#sort-by'); + $('#shuffle a').click(function(){ + $container.isotope('shuffle'); + $sortBy.find('.selected').removeClass('selected'); + $sortBy.find('[data-option-value="random"]').addClass('selected'); + return false; }); });