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

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow show.solo to accept a jQuery selector. Closes #452
  • Loading branch information
Craga89 committed Jan 4, 2013
1 parent bcb3ae2 commit 386da94
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 19 deletions.
4 changes: 2 additions & 2 deletions dist/basic/jquery.qtip.css
@@ -1,12 +1,12 @@
/*!
* qTip2 - Pretty powerful tooltips - v2.0.1-3-g
* qTip2 - Pretty powerful tooltips - v2.0.1-4-g
* http://qtip2.com
*
* Copyright (c) 2013 Craig Michael Thompson
* Released under the MIT, GPL licenses
* http://jquery.org/license
*
* Date: Fri Jan 4 2013 03:59 GMT+0000
* Date: Fri Jan 4 2013 04:05 GMT+0000
* Plugins: svg ajax tips modal viewport imagemap ie6
* Styles: basic css3
*/
Expand Down
9 changes: 5 additions & 4 deletions dist/basic/jquery.qtip.js
@@ -1,12 +1,12 @@
/*!
* qTip2 - Pretty powerful tooltips - v2.0.1-3-g
* qTip2 - Pretty powerful tooltips - v2.0.1-4-g
* http://qtip2.com
*
* Copyright (c) 2013 Craig Michael Thompson
* Released under the MIT, GPL licenses
* http://jquery.org/license
*
* Date: Fri Jan 4 2013 03:59 GMT+0000
* Date: Fri Jan 4 2013 04:05 GMT+0000
* Plugins: svg ajax tips modal viewport imagemap ie6
* Styles: basic css3
*/
Expand Down Expand Up @@ -1002,7 +1002,8 @@ function QTip(target, options, id, attr)

// Hide other tooltips if tooltip is solo
if(!!opts.solo) {
$(selector, opts.solo).not(tooltip).qtip('hide', $.Event('tooltipsolo'));
(typeof opts.solo === 'string' ? $(opts.solo) : $(selector, opts.solo))
.not(tooltip).not(opts.target).qtip('hide', $.Event('tooltipsolo'));
}
}
else {
Expand Down Expand Up @@ -1735,7 +1736,7 @@ if(!$.ui) {
}

// Set global qTip properties
QTIP.version = '2.0.1-3-g';
QTIP.version = '2.0.1-4-g';
QTIP.nextid = 0;
QTIP.inactiveEvents = 'click dblclick mousedown mouseup mousemove mouseleave mouseenter'.split(' ');
QTIP.zindex = 15000;
Expand Down
2 changes: 1 addition & 1 deletion dist/basic/jquery.qtip.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/basic/jquery.qtip.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.css
@@ -1,12 +1,12 @@
/*!
* qTip2 - Pretty powerful tooltips - v2.0.1-3-g
* qTip2 - Pretty powerful tooltips - v2.0.1-4-g
* http://qtip2.com
*
* Copyright (c) 2013 Craig Michael Thompson
* Released under the MIT, GPL licenses
* http://jquery.org/license
*
* Date: Fri Jan 4 2013 03:59 GMT+0000
* Date: Fri Jan 4 2013 04:05 GMT+0000
* Plugins: svg ajax tips modal viewport imagemap ie6
* Styles: basic css3
*/
Expand Down
9 changes: 5 additions & 4 deletions dist/jquery.qtip.js
@@ -1,12 +1,12 @@
/*!
* qTip2 - Pretty powerful tooltips - v2.0.1-3-g
* qTip2 - Pretty powerful tooltips - v2.0.1-4-g
* http://qtip2.com
*
* Copyright (c) 2013 Craig Michael Thompson
* Released under the MIT, GPL licenses
* http://jquery.org/license
*
* Date: Fri Jan 4 2013 03:59 GMT+0000
* Date: Fri Jan 4 2013 04:05 GMT+0000
* Plugins: svg ajax tips modal viewport imagemap ie6
* Styles: basic css3
*/
Expand Down Expand Up @@ -1002,7 +1002,8 @@ function QTip(target, options, id, attr)

// Hide other tooltips if tooltip is solo
if(!!opts.solo) {
$(selector, opts.solo).not(tooltip).qtip('hide', $.Event('tooltipsolo'));
(typeof opts.solo === 'string' ? $(opts.solo) : $(selector, opts.solo))
.not(tooltip).not(opts.target).qtip('hide', $.Event('tooltipsolo'));
}
}
else {
Expand Down Expand Up @@ -1735,7 +1736,7 @@ if(!$.ui) {
}

// Set global qTip properties
QTIP.version = '2.0.1-3-g';
QTIP.version = '2.0.1-4-g';
QTIP.nextid = 0;
QTIP.inactiveEvents = 'click dblclick mousedown mouseup mousemove mouseleave mouseenter'.split(' ');
QTIP.zindex = 15000;
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

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

// Hide other tooltips if tooltip is solo
if(!!opts.solo) {
$(selector, opts.solo).not(tooltip).qtip('hide', $.Event('tooltipsolo'));
(typeof opts.solo === 'string' ? $(opts.solo) : $(selector, opts.solo))
.not(tooltip).not(opts.target).qtip('hide', $.Event('tooltipsolo'));
}
}
else {
Expand Down

0 comments on commit 386da94

Please sign in to comment.