2012-01-10 3 views
1

ajax를 통해 fancybox에 콘텐츠를로드하고 있습니다. 정상적으로 작동합니다.fancybox 내의 fancybox 링크

그러나 Ajax 콘텐츠 내의 fancybox 링크를 사용하면 닫은 다음 열 수 있습니다.

이것은 버전 2 이전에는 사용되지 않았습니다. 적절하게 크기를 조정하고 열려있는 팬시 박스에서 콘텐츠를 닫은 다음 다시 열지 않고로드합니다.

왜 이런 이유가 있는지 알고 계십니까?

(페이지 첫 링크) :

<a class="fancybox-style-1 fancybox.ajax" 
href="[ajax content url]">Link to ajax Content</a> 

(Fancybox 내에서 두 번째 링크) :

<a class="fancybox-style-1 fancybox.ajax" 
href="[another ajax content url]">Link to more ajax Content</a> 

(Fancybox jQuery를 메인 페이지의 바닥 글 :

$(".fancybox-style-1").fancybox({ 
    wrapCSS : 'fancybox-custom', 
    padding : 0, 
    scrolling: 'no', 
    openEffect : 'fade', 
    openSpeed : 150, 
    closeEffect : 'fade', 
    closeSpeed : 150, 
    closeClick : false, 
    topRatio: 0.1, 
    helpers : { 
     overlay : { 
      opacity : 0.4 
     }, 
     title : null 
    } 
}); 

답변

1

대신 페이드 아웃 -> 크기 조정 -> 페이드 인 항목이 전환되었습니다. 따라서 닫기와 열기가 표시됩니다.