0

masonry プラグインが特定の呼び出しでリロードされないようです。コードに何かが欠けているだけかもしれませんが、何が問題なのかわかりません。これが私のコードです:

jQuery(document).ready(function(){

jQuery(".pics-hidden").hide();

jQuery('#menu1').click(function() {
      var menu = $(this).attr('menuref');
      jQuery(".pics").fadeOut(0).filter("[imageref='" + menu + "']").fadeIn(0);
      jQuery('#projectimages').masonry('reload');
});

jQuery('#menu2').click(function() {
      var menu = $(this).attr('menuref');
      jQuery(".pics").fadeOut(0).filter("[imageref='" + menu + "']").fadeIn(0);
      jQuery('#projectimages').masonry('reload');
});

jQuery('.pics').click(function() {
      jQuery('#div'+jQuery(this).attr('rarget')).addClass('pics').removeClass('#div'+jQuery(this).attr('rarget')).delay(600).fadeIn(400);
      jQuery('#projectimages').masonry('reload');
       });

jQuery('.close').click(function() {
      jQuery('#div'+jQuery(this).attr('larget')).removeClass('pics').addClass('.pics-hidden').removeClass('#div'+jQuery(this).attr('larget')).fadeOut(200);
      jQuery('#projectimages').masonry('reload'); 
      return false;      
});
});

下位 2 つの呼び出しは正常に機能し、正常にリロードされますが、何らかの理由で上位 2 つの呼び出し (フィルターを含む) が石工プラグインをリロードしていないようです。
まったく見当がつきません。

4

0 に答える 0