From 828e9bfab5fd7ba7e39cfa247e3930fa7cccadae Mon Sep 17 00:00:00 2001 From: l2aelba Date: Thu, 31 Jan 2013 10:09:26 +0100 Subject: [PATCH] Update jquery.isotope.js Add body class like how many cols showing now : Classes look like = one col showing --- jquery.isotope.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery.isotope.js b/jquery.isotope.js index 7d5631c..323f483 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -989,6 +989,8 @@ for ( i=0; i < setSpan; i++ ) { this.masonry.colYs[ shortCol + i ] = setHeight; } + + $("body").removeClass(function(i,c){var m=c.match(/col-(\d*)/);return m?m[0]:m}).addClass("col-"+this.masonry.cols); }, @@ -1404,4 +1406,4 @@ return this; }; -})( window, jQuery ); \ No newline at end of file +})( window, jQuery );