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. 4
      jquery.isotope.js

4
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 );
})( window, jQuery );

Loading…
Cancel
Save