Skip to content

Commit 168558c

Browse files
committed
Merge pull request #1 from BrandwatchLtd/brandwatch-fixes
Brandwatch fixes
2 parents be6af4a + b025f77 commit 168558c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/overlay/overlay.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626
closeOnEsc: true,
2727
closeSpeed: 'fast',
2828
effect: 'default',
29-
30-
// since 1.2. fixed positioning not supported by IE6
31-
fixed: !$.browser.msie || $.browser.version > 6,
32-
29+
fixed: true,
3330
left: 'center',
3431
load: false, // 1.2
3532
mask: null,

src/toolbox/toolbox.expose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
function viewport() {
4242

4343
// the horror case
44-
if ($.browser.msie) {
44+
if ($('html').hasClass('ie')) {
4545

4646
// if there are no scrollbars then use window.height
4747
var d = $(document).height(), w = $(window).height();

src/tooltip/tooltip.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
* Date: @DATE
1111
*/
1212
(function($) {
13+
14+
function isIE(){
15+
return $('html').hasClass('ie');
16+
}
17+
1318
// static constructs
1419
$.tools = $.tools || {version: '@VERSION'};
1520

@@ -69,7 +74,7 @@
6974
fade: [
7075
function(done) {
7176
var conf = this.getConf();
72-
if (!$.browser.msie || conf.fadeIE) {
77+
if (!isIE() || conf.fadeIE) {
7378
this.getTip().fadeTo(conf.fadeInSpeed, conf.opacity, done);
7479
}
7580
else {
@@ -79,7 +84,7 @@
7984
},
8085
function(done) {
8186
var conf = this.getConf();
82-
if (!$.browser.msie || conf.fadeIE) {
87+
if (!isIE() || conf.fadeIE) {
8388
this.getTip().fadeOut(conf.fadeOutSpeed, done);
8489
}
8590
else {

0 commit comments

Comments
 (0)