Unbind/Destroy fancybox 2 events

前端 未结 4 1911
孤城傲影
孤城傲影 2021-01-12 11:49

I am having a strange issue, I have code that pulls content via ajax and then binds Fancybox (2) to certain elements. The issue is that when I \"refresh\" this page I call t

4条回答
  •  遥遥无期
    2021-01-12 12:34

    Thanks for the response, I have not tested the above, I used a different approach to resolve the issue.

    What I did was instead of using the default Fancybox functionality I created functions for where I would need Fancybox and manually called Fancybox in each case which thus didn't bind the event.

    This isn't the best approach and the above may be better but I will get to testing this in the new year :)

    Thanks again.

提交回复
热议问题