Created
August 7, 2013 10:48
-
-
Save mrkrand/6173042 to your computer and use it in GitHub Desktop.
FancyBox jQuery 1.9.0 fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Patch the fancybox js file to make it work with jQuery v1.9.0 as follow : | |
Open the jquery.fancybox-1.3.4.js file (full version, not pack version) with a text/html editor. | |
Find around the line 29 where it says : | |
isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest, | |
and replace it by (EDITED March 19, 2013: more accurate filter): | |
isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest, | |
UPDATE (March 19, 2013): Also replace $.browser.msie by navigator.userAgent.match(/msie [6]/i) around line 615 (and/or replace all $.browser.msie instances, if any), thanks joofow ... that's it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment