From c5bb1ebc91fc3646cc3a59abac5f63f965edb2ab Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 29 Jun 2011 23:21:39 -0400 Subject: [PATCH] tests : elements complete : add shuffle --- _posts/tests/2011-05-24-elements-complete-test.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/_posts/tests/2011-05-24-elements-complete-test.html b/_posts/tests/2011-05-24-elements-complete-test.html index 6605bcd..6fda9d3 100644 --- a/_posts/tests/2011-05-24-elements-complete-test.html +++ b/_posts/tests/2011-05-24-elements-complete-test.html @@ -2,6 +2,7 @@ title: elements complete test layout: default category: tests +body_class: demos ---
@@ -19,12 +20,12 @@ category: tests

Etc

+
@@ -127,8 +128,13 @@ category: tests {% include add-buttons.js %} + var $sortBy = $('#sort-by'); $('#shuffle a').click(function(){ + console.time('shuffle'); $container.isotope('shuffle'); + $sortBy.find('.selected').removeClass('selected'); + $sortBy.find('[data-option-value="random"]').addClass('selected'); + console.timeEnd('shuffle'); return false; });