Fancybox doesn't work with jQuery v1.9.0 [ f.browser is undefined / Cannot read property 'msie' ]

前端 未结 4 1533
执笔经年
执笔经年 2020-11-22 03:07

Fancybox breaks with the new jQuery v1.9.0.

It affects both, Fancybox v1.3.4 and below - and - v2.1.3 and below.

The errors shown are :

4条回答
  •  伪装坚强ぢ
    2020-11-22 03:28

    Hi this is due to new version of the jQuery => 1.9.0

    you can check the update : http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/

    jQuery.Browser is deprecated. you can keep latest version by adding a migration script : http://code.jquery.com/jquery-migrate-1.0.0.js

    replace :

    
    

    by :

    
    
    

    in your page and its working.

提交回复
热议问题