Navigation Menu

Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Fix 'unfocus' functionalit when using iframe contents as position.con…
Browse files Browse the repository at this point in the history
…tainer
  • Loading branch information
Craga89 committed Feb 27, 2012
1 parent 04cc93a commit 17b3f93
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Feb 27 01:39:33 2012 +0000
* Date: Mon Feb 27 01:40:29 2012 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -556,7 +556,7 @@ function QTip(target, options, id, attr)

// Hide tooltip on document mousedown if unfocus events are enabled
if(('' + options.hide.event).indexOf('unfocus') > -1) {
targets.document.bind('mousedown'+namespace, function(event) {
posOptions.container.closest('html').bind('mousedown'+namespace, function(event) {
var $target = $(event.target),
enabled = !tooltip.hasClass(disabled) && tooltip.is(':visible'),
isAncestor = $target.parents(selector).filter(tooltip[0]).length > 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Feb 27 01:39:33 2012 +0000
* Date: Mon Feb 27 01:40:29 2012 +0000
*/

/* Core qTip styles */
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Feb 27 01:39:33 2012 +0000
* Date: Mon Feb 27 01:40:29 2012 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -556,7 +556,7 @@ function QTip(target, options, id, attr)

// Hide tooltip on document mousedown if unfocus events are enabled
if(('' + options.hide.event).indexOf('unfocus') > -1) {
targets.document.bind('mousedown'+namespace, function(event) {
posOptions.container.closest('html').bind('mousedown'+namespace, function(event) {
var $target = $(event.target),
enabled = !tooltip.hasClass(disabled) && tooltip.is(':visible'),
isAncestor = $target.parents(selector).filter(tooltip[0]).length > 0;
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -484,7 +484,7 @@ function QTip(target, options, id, attr)

// Hide tooltip on document mousedown if unfocus events are enabled
if(('' + options.hide.event).indexOf('unfocus') > -1) {
targets.document.bind('mousedown'+namespace, function(event) {
posOptions.container.closest('html').bind('mousedown'+namespace, function(event) {
var $target = $(event.target),
enabled = !tooltip.hasClass(disabled) && tooltip.is(':visible'),
isAncestor = $target.parents(selector).filter(tooltip[0]).length > 0;
Expand Down

0 comments on commit 17b3f93

Please sign in to comment.