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

Commit

Permalink
Fixed a problem with modal blanket showing regardless of whether or n…
Browse files Browse the repository at this point in the history
…ot show.modal was set to false
  • Loading branch information
Craga89 committed Sep 14, 2010
1 parent da923b5 commit 01dd9f4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 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: Tue Sep 14 16:08:03 2010 +0100
* Date: Tue Sep 14 17:55:57 2010 +0100
*/

.ui-tooltip-accessible{
Expand Down
7 changes: 4 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: Tue Sep 14 16:08:03 2010 +0100
* Date: Tue Sep 14 17:55:57 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 @@ -2264,7 +2264,7 @@ $.fn.qtip.plugins.modal = function(qTip)
return api;
}
// No API was found, create new instance
else if(typeof opts === 'object') {
else if(opts.on === TRUE) {
qTip.plugins.modal = new Modal(qTip, opts);
return qTip.plugins.modal;
}
Expand All @@ -2275,12 +2275,13 @@ $.fn.qtip.plugins.modal.initialize = 'render';
$.fn.qtip.plugins.modal.sanitize = function(opts)
{
if(opts.show && opts.show.modal !== undefined) {
if(typeof opts.show.modal !== 'object'){ opts.show.modal = { }; }
if(typeof opts.show.modal !== 'object'){ opts.show.modal = { on: opts.show.modal }; }
}
};

// Setup plugin defaults
$.fn.qtip.plugins.modal.defaults = {
on: TRUE,
effect: TRUE,
blur: TRUE
};
Expand Down
7 changes: 4 additions & 3 deletions dist/jquery.qtip.min.js

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

0 comments on commit 01dd9f4

Please sign in to comment.