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

Commit

Permalink
Moved modal cursor declaration into stylesheet via new .blurs class
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jun 7, 2011
1 parent 1c2345a commit 8a7ecc3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 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: Tue Jun 7 15:02:53 2011 +0100
* Date: Tue Jun 7 19:37:38 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down
6 changes: 5 additions & 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 Jun 7 15:02:53 2011 +0100
* Date: Tue Jun 7 19:37:38 2011 +0100
*/

/* Core qTip styles */
Expand Down Expand Up @@ -169,6 +169,10 @@
top: -10000em;
}

/* Applied to modals with show.modal.blur set to true */
#qtip-overlay.blurs{ cursor: pointer; }

/* Change opacity of overlay here */
#qtip-overlay div{
position: absolute;
left: 0; top: 0;
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: Tue Jun 7 15:02:53 2011 +0100
* Date: Tue Jun 7 19:37:38 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -2860,7 +2860,7 @@ function Modal(api)
overlay.css({ left: 0, top: 0 });

// Toggle backdrop cursor style on show
elems.overlay.css('cursor', options.blur ? 'pointer' : '');
overlay.toggleClass('blurs', options.blur);

// Make sure we can't focus anything outside the tooltip
docBody.delegate('*', 'focusin'+namespace, function(event) {
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.

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

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/modal.css
Expand Up @@ -5,6 +5,10 @@
top: -10000em;
}

/* Applied to modals with show.modal.blur set to true */
#qtip-overlay.blurs{ cursor: pointer; }

/* Change opacity of overlay here */
#qtip-overlay div{
position: absolute;
left: 0; top: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/modal.js
Expand Up @@ -129,7 +129,7 @@ function Modal(api)
overlay.css({ left: 0, top: 0 });

// Toggle backdrop cursor style on show
elems.overlay.css('cursor', options.blur ? 'pointer' : '');
overlay.toggleClass('blurs', options.blur);

// Make sure we can't focus anything outside the tooltip
docBody.delegate('*', 'focusin'+namespace, function(event) {
Expand Down

0 comments on commit 8a7ecc3

Please sign in to comment.