[Pkg-javascript-commits] [jquery-goodies] 02/04: Fixed fancybox: $.browser is undefined
Marcelo Jorge Vieira
metal at moszumanska.debian.org
Sun May 22 02:06:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
metal pushed a commit to branch master
in repository jquery-goodies.
commit 6bd4d8d2d3ed77c4c5dbb8e519dedcde6221a302
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date: Sat May 21 22:59:12 2016 -0300
Fixed fancybox: $.browser is undefined
---
debian/patches/fancybox_browser_is_undefined.patch | 34 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 35 insertions(+)
diff --git a/debian/patches/fancybox_browser_is_undefined.patch b/debian/patches/fancybox_browser_is_undefined.patch
new file mode 100644
index 0000000..77deb6e
--- /dev/null
+++ b/debian/patches/fancybox_browser_is_undefined.patch
@@ -0,0 +1,34 @@
+--- a/fancybox/jquery.fancybox.js
++++ b/fancybox/jquery.fancybox.js
+@@ -26,8 +26,8 @@
+
+ titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
+
+- isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
+-
++// isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
++ isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest,
+ /*
+ * Private methods
+ */
+@@ -612,9 +612,9 @@
+ }
+
+ if (currentOpts.type == 'iframe') {
+- $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
++// $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
++ $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + (navigator.userAgent.match(/msie [6]/i) ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
+ }
+-
+ wrap.show();
+
+ busy = false;
+@@ -812,7 +812,7 @@
+ selectedArray.push(this);
+
+ } else {
+- selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
++ selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "], img[rel=" + rel + "]");
+ selectedIndex = selectedArray.index( this );
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index c5120e8..c4ca6c9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ privacy_breach_donation
privacy_breach_google_adsense.diff
fancybox_fix_for_ie6.diff
privacy_breach_uses_embedded_file.diff
+fancybox_browser_is_undefined.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-goodies.git
More information about the Pkg-javascript-commits
mailing list