Browse Source

Update jquery.isotope.js

Add body class like how many cols showing now :

Classes look like <body class="col-1"> = one col showing
pull/373/head
l2aelba 12 years ago
parent
commit
828e9bfab5
  1. 2
      jquery.isotope.js

2
jquery.isotope.js

@ -990,6 +990,8 @@
this.masonry.colYs[ shortCol + i ] = setHeight; 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);
}, },
_masonryGetContainerSize : function() { _masonryGetContainerSize : function() {

Loading…
Cancel
Save