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

Commit

Permalink
Fixed bug with show.inactive not working when calling .show() manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Nov 4, 2011
1 parent 1bf4467 commit 808e124
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 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: Fri Nov 4 18:13:21 2011 +0000
* Date: Fri Nov 4 20:40:57 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -451,9 +451,6 @@ function QTip(target, options, id, attr)
{
if(tooltip.hasClass(disabled)) { return FALSE; }

// If set, hide tooltip when inactive for delay period
targets.show.trigger('qtip-'+id+'-inactive');

// Clear hide timers
clearTimeout(self.timers.show);
clearTimeout(self.timers.hide);
Expand Down Expand Up @@ -1032,6 +1029,9 @@ function QTip(target, options, id, attr)
callback = $.Event('tooltipvisible');
callback.originalEvent = event ? cache.event : NULL;
tooltip.trigger(callback, [self]);

// If set, hide tooltip when inactive for delay period
opts.target.trigger('qtip-'+id+'-inactive');
}
else {
// Reset CSS states
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: Fri Nov 4 18:13:21 2011 +0000
* Date: Fri Nov 4 20:40:57 2011 +0000
*/

/* Core qTip styles */
Expand Down
8 changes: 4 additions & 4 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: Fri Nov 4 18:13:21 2011 +0000
* Date: Fri Nov 4 20:40:57 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -451,9 +451,6 @@ function QTip(target, options, id, attr)
{
if(tooltip.hasClass(disabled)) { return FALSE; }

// If set, hide tooltip when inactive for delay period
targets.show.trigger('qtip-'+id+'-inactive');

// Clear hide timers
clearTimeout(self.timers.show);
clearTimeout(self.timers.hide);
Expand Down Expand Up @@ -1032,6 +1029,9 @@ function QTip(target, options, id, attr)
callback = $.Event('tooltipvisible');
callback.originalEvent = event ? cache.event : NULL;
tooltip.trigger(callback, [self]);

// If set, hide tooltip when inactive for delay period
opts.target.trigger('qtip-'+id+'-inactive');
}
else {
// Reset CSS states
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/core.js
Expand Up @@ -388,9 +388,6 @@ function QTip(target, options, id, attr)
{
if(tooltip.hasClass(disabled)) { return FALSE; }

// If set, hide tooltip when inactive for delay period
targets.show.trigger('qtip-'+id+'-inactive');

// Clear hide timers
clearTimeout(self.timers.show);
clearTimeout(self.timers.hide);
Expand Down Expand Up @@ -969,6 +966,9 @@ function QTip(target, options, id, attr)
callback = $.Event('tooltipvisible');
callback.originalEvent = event ? cache.event : NULL;
tooltip.trigger(callback, [self]);

// If set, hide tooltip when inactive for delay period
opts.target.trigger('qtip-'+id+'-inactive');
}
else {
// Reset CSS states
Expand Down

0 comments on commit 808e124

Please sign in to comment.