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

Commit

Permalink
Fixed problem with previous commit that caused modal plugin to be ena…
Browse files Browse the repository at this point in the history
…bled by default on ALL tooltips
  • Loading branch information
Craga89 committed Oct 3, 2010
1 parent 5ce6911 commit f0af5d6
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 67 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: Sun Oct 3 17:38:38 2010 +0100
* Date: Sun Oct 3 17:45:11 2010 +0100
*/

.ui-tooltip-accessible{
Expand Down
9 changes: 6 additions & 3 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: Sun Oct 3 17:38:38 2010 +0100
* Date: Sun Oct 3 17:45:11 2010 +0100
*/

"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 @@ -2379,14 +2379,17 @@ $.fn.qtip.plugins.modal.initialize = 'render';

// Setup sanitiztion rules
$.fn.qtip.plugins.modal.sanitize = function(opts) {
if(opts.show && typeof opts.show.modal !== 'object') { opts.show.modal = { on: !!opts.show.modal }; }
if(opts.show) {
if(typeof opts.show.modal !== 'object') { opts.show.modal = { on: !!opts.show.modal }; }
else if(typeof opts.show.modal.on === 'undefined') { opts.show.modal.on = TRUE; }
}
};

// Extend original qTip defaults
$.extend(TRUE, $.fn.qtip.defaults, {
show: {
modal: {
on: TRUE,
on: FALSE,
effect: TRUE,
blur: TRUE
}
Expand Down

0 comments on commit f0af5d6

Please sign in to comment.