From 7597e871ab9eba0d8893956bdafe92cb5421c81b Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Fri, 17 Jun 2011 09:26:36 -0400 Subject: [PATCH] test : position data : use change-sizes.js --- .../2011-04-26-item-position-data01.html | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/_posts/tests/2011-04-26-item-position-data01.html b/_posts/tests/2011-04-26-item-position-data01.html index eeec37b..9d1c86b 100644 --- a/_posts/tests/2011-04-26-item-position-data01.html +++ b/_posts/tests/2011-04-26-item-position-data01.html @@ -36,22 +36,6 @@ category: tests {% include random-sizes.js %} - {% include option-set-buttons.js %} - - // toggle variable sizes of all elements - $('#toggle-sizes').find('a').click(function(){ - $container - .toggleClass('variable-sizes') - .isotope('reLayout'); - return false; - }); - - // log item position - $container.find('.element').click(function(){ - var position = $(this).data('isotope-item-position'); - console.log( position.x + ', ' + position.y ); - }); - $container.isotope({ itemSelector: '.element', itemPositionDataEnabled: true, @@ -76,6 +60,10 @@ category: tests } } }); + + {% include option-set-buttons.js %} + + {% include change-sizes.js %} }); \ No newline at end of file