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; }); });