I have a site using Isotope.js to filter some news items. It works in all browsers/platforms perfectly except in IE8 and IE9 it does not seem to filter; nothing happens when I click the filtering links. I can't tell if the boxes are even smoothly moving around because I can't resize my browser in IE on my testing station. (I have a virtual IE 8 and 9 machine running on one PC workstation for my testing)
Here's my script:
$(function () {
var $container = $('#news-item-listing');
$('#news-item-listing').isotope({
// options
itemSelector: '.news_box',
layoutMode: 'fitRows'
});
$('#news-item-listing').isotope({
filter: '.news_box'
}, function ($items) {
var id = this.attr('id'),
len = $items.length;
console.log('Isotope has filtered for ' + len + ' items in #' + id);
});
// filter items when filter link is clicked
$('#categories a').click(function () {
var selector = $(this).attr('data-filter');
$container.isotope({
filter: selector
});
return false;
});
$('#categories a').click(function (e) {
e.preventDefault();
$('a').removeClass('active');
$(this).addClass('active');
});
});
I suspect something is wrong with my script? Thank you in advance!