Permalink
Browse files

fixes regression in ie7 & ie8

  • Loading branch information...
1 parent faef787 commit 13de5a48305f3f67914e1ae802c30281d5530663 Wojciech Ryrych committed Oct 5, 2011
Showing with 14 additions and 1 deletion.
  1. +14 −1 widget/lib/jquery.ui.rlightbox.js
@@ -535,6 +535,9 @@ $.extend($.ui.rlightbox, {
} else if ( _pos > _center ) {
data.side = "right";
}
+
+ // for Panorama to work in IE7 & IE8
+ event.preventDefault();
},
getSizes: function() {
@@ -1552,7 +1555,7 @@ $.extend($.ui.rlightbox, {
}
},
- setCursor: function() {
+ setCursor: function( event ) {
var data = this.data,
$lb = this.$lightbox,
$contentContainer = $lb.contentContainer,
@@ -1597,6 +1600,11 @@ $.extend($.ui.rlightbox, {
} else {
$contentContainer.css"cursor", "default" );
}
+
+ // for Panorama to work in IE7 & IE8
+ if ( event ) {
+ event.preventDefault();
+ }
},
setNextQueue: function() {
@@ -1702,6 +1710,11 @@ $.extend($.ui.rlightbox, {
this.hideArrow();
}
}
+
+ // for Panorama to work in IE7 & IE8
+ if ( event ) {
+ event.preventDefault();
+ }
},
showErrorMessage: function() {

0 comments on commit 13de5a4

Please sign in to comment.