Permalink
Browse files

show default cursor while loading and opening

  • Loading branch information...
1 parent 21eccde commit 4f908bec832244c623bb6f96264622350ad7fc05 Wojciech Ryrych committed Sep 28, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 widget/lib/jquery.ui.rlightbox.js
@@ -1110,7 +1110,7 @@ $.extend($.ui.rlightbox, {
this.setNextQueue();
// to fade or not to fade…
- this.checkButtonsState();
+ this.checkButtonsState();
// start opening the lighbox
$lb.queueContainer.open.dequeue( "lightboxOpen" );
@@ -1561,6 +1561,8 @@ $.extend($.ui.rlightbox, {
// for flash videos
$contentContainer.css"cursor", "auto" );
}
+ } else {
+ $contentContainer.css"cursor", "default" );
}
},
@@ -1782,6 +1784,9 @@ $.extend($.ui.rlightbox, {
// let know that lightbox is not ready now
data.ready = false;
+
+ // change cursor to default
+ this.setCursor();
// show overlay
$( "body" ).css( "overflow", "hidden" );
@@ -1988,6 +1993,9 @@ $.extend($.ui.rlightbox, {
// hide arrow cue
this.navigationHideArrow();
+ // change cursor to default
+ this.setCursor();
+
$lb.header.slideUp ( _options.animationSpeed, next );
},

0 comments on commit 4f908be

Please sign in to comment.