From 88a41a387088bb6660bda9b90648af646e0a13b5 Mon Sep 17 00:00:00 2001 From: Eston Bond Date: Wed, 8 Dec 2010 16:01:22 -0800 Subject: [PATCH] Disable help animations in IE since weird crap happens to aliasing with opacity animations --- .../javascript/gollum-editor/gollum.editor.js | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js b/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js index b07a25df..d1401280 100755 --- a/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js +++ b/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js @@ -864,23 +864,33 @@ hide: function() { - $('#gollum-editor-help').animate({ - opacity: 0 - }, 200, - function() { - $('#gollum-editor-help') - .animate({ height: 'hide' }, 200); - }); + if ( $.browser.msie ) { + $('#gollum-editor-help').css('display', 'none'); + } else { + $('#gollum-editor-help').animate({ + opacity: 0 + }, 200, + function() { + $('#gollum-editor-help') + .animate({ height: 'hide' }, 200); + }); + } }, show: function() { - $('#gollum-editor-help').animate({ + if ( $.browser.msie ) { + // bypass effects for internet explorer, since it does weird crap + // to text antialiasing with opacity animations + $('#gollum-editor-help').css('display', 'block'); + } else { + $('#gollum-editor-help').animate({ height: 'show' }, 200, function() { $('#gollum-editor-help') .animate({ opacity: 1 }, 300); }); + } },