Skip to content

Commit

Permalink
Adds support for jQuery v1.9.0
Browse files Browse the repository at this point in the history
Version bump.
  • Loading branch information
Igor Lino committed Jun 20, 2015
1 parent 72b2345 commit 77aabda
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- Modal
- Easing
- JQuery plug-in
- JQuery plug-in. Supports JQuery 1.9.
- Integration to latest jQuery [Mouse Wheel Plugin](https://github.com/jquery/jquery-mousewheel)
- Angular directive available at [angular-fancybox-plus](https://github.com/igorlino/angular-fancybox-plus)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fancybox-plus",
"title": "Fancybox-Plus",
"version": "1.3.5",
"version": "1.3.6",
"description": "jQuery lightbox and modal window plugin.",
"author": {
"name": "Igor Lino",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fancybox-plus",
"title": "Fancybox-Plus",
"version": "1.3.5",
"version": "1.3.6",
"description": "jQuery lightbox and modal window plugin.",
"keywords": [
"modal",
Expand Down
5 changes: 3 additions & 2 deletions src/jquery.fancybox-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], {prop: 0}),

isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest,

/*
* Private methods
Expand Down Expand Up @@ -609,7 +609,8 @@
}

if (currentOpts.type == 'iframe') {
$('<iframe id="fbplus-frame" name="fbplus-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
$('<iframe id="fbplus-frame" name="fbplus-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();
Expand Down

0 comments on commit 77aabda

Please sign in to comment.