Anonymous avatar Anonymous committed 132d036

Fix IE7 cleartype issue after fadeIn or fadeOut

Comments (0)

Files changed (1)

masterfunctions.js

  * Author: Rudy Affandi
  * Created: 03/19/2011
  * Revision: 11/20/2011
+ * Version: 1.5
  * File name: masterfunctions.js
  */
 
 
    // Also expand tree for all parents
    $('.content_side li a.active').parents().show();
-
    $('.content_side ul ul li a.active').parent().parent().show();
    $('.content_side ul ul ul li a.active').parent().parent().parent().show();
    $('.content_side ul ul:visible').prev().addClass('active');
    $('.content_side ul ul ul:visible').prev().prev().addClass('active');
 
+
    // Style default RFI form (Experimental)
    // First we clean up the mess from original table formatting
    // jQuery Uniform plugin required
    }
 });
 
+// Fix IE7 cleartype issue after fadeIn or fadeOut
+(function($) {
+    $.fn.customFadeIn = function(speed, callback) {
+        $(this).fadeIn(speed, function() {
+                if(jQuery.browser.msie)
+                        $(this).get(0).style.removeAttribute('filter');
+                if(callback != undefined)
+                        callback();
+        });
+    };
+    $.fn.customFadeOut = function(speed, callback) {
+        $(this).fadeOut(speed, function() {
+                if(jQuery.browser.msie)
+                        $(this).get(0).style.removeAttribute('filter');
+                if(callback != undefined)
+                        callback();
+        });
+    };
+})(jQuery);
+
 // jQuery REGEX filter
 jQuery.expr[':'].regex = function(elem, index, match) {
     var matchParams = match[3].split(','),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.