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

Commit

Permalink
More tips plugin colour fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Dec 8, 2010
1 parent 5bedd42 commit 544d61d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
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: Wed Dec 8 19:15:20 2010 +0000
* Date: Wed Dec 8 19:42:41 2010 +0000
*/

.ui-tooltip-accessible{
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: Wed Dec 8 19:15:20 2010 +0000
* Date: Wed Dec 8 19:42:41 2010 +0000
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -1943,7 +1943,7 @@ function Tip(qTip, command)
color.border = tip.get(0).style ? tip.get(0).style['border' + precedance.charAt(0) + precedance.substr(1) + 'Color'] : tip.css(borderSide) || 'transparent';

// Make sure colours are valid and reset background and border properties
if(invalid.test(color.fill)) { color.fill = elemFill.css(border ? 'background-color' : borderSide); }
if(invalid.test(color.fill)) { color.fill = border ? elemFill.css('background-color') : elemBorder.css(borderSide); }
if(!color.border || invalid.test(color.border)) { color.border = elemBorder.css(borderSide) || color.fill; }

$('*', tip).add(tip).css('background-color', 'transparent').css('border', 0);
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

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

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/tips.js
Expand Up @@ -248,7 +248,7 @@ function Tip(qTip, command)
color.border = tip.get(0).style ? tip.get(0).style['border' + precedance.charAt(0) + precedance.substr(1) + 'Color'] : tip.css(borderSide) || 'transparent';

// Make sure colours are valid and reset background and border properties
if(invalid.test(color.fill)) { color.fill = elemFill.css(border ? 'background-color' : borderSide); }
if(invalid.test(color.fill)) { color.fill = border ? elemFill.css('background-color') : elemBorder.css(borderSide); }
if(!color.border || invalid.test(color.border)) { color.border = elemBorder.css(borderSide) || color.fill; }

$('*', tip).add(tip).css('background-color', 'transparent').css('border', 0);
Expand Down

0 comments on commit 544d61d

Please sign in to comment.