brianmaierjr
9/24/2013 - 10:31 PM

Using Barrel's MixitUp jquery filter to automatically filter based on url hash

Using Barrel's MixitUp jquery filter to automatically filter based on url hash

$('#grid').mixitup({ 
  onMixLoad: function(){
      var hash = window.location.hash;
      var noHash=hash.replace("#","");

      if(hash){
          $('#grid').mixitup('filter', noHash);
      }
    }
});