]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/dashboard.js
WordPress 3.9
[autoinstalls/wordpress.git] / wp-admin / js / dashboard.js
index 4d4eb50d0ca031ccc0fb97f2f3f5d3da8c7faf3f..1029b0d0962949d4ad27ab5d4a872405032e7766 100644 (file)
@@ -123,13 +123,11 @@ jQuery(document).ready( function($) {
 
        $( '.meta-box-sortables' ).sortable( 'option', 'containment', 'document' );
 
-       // Activity Widget
-       $( '.show-more a' ).on( 'click', function(e) {
-               $( this ).fadeOut().closest('.activity-block').find( 'li.hidden' ).fadeIn().removeClass( 'hidden' );
-               e.preventDefault();
-       });
-
        function autoResizeTextarea() {
+               if ( document.documentMode && document.documentMode < 9 ) {
+                       return;
+               }
+
                // Add a hidden div. We'll copy over the text from the textarea to measure its height.
                $('body').append( '<div class="quick-draft-textarea-clone" style="display: none;"></div>' );
 
@@ -179,8 +177,8 @@ jQuery(document).ready( function($) {
                                editorHeight = cloneHeight;
                        }
 
-                       // No scrollbars as we change height
-                       editor.css('overflow-y', 'hidden');
+                       // No scrollbars as we change height, not for IE < 9
+                       editor.css('overflow', 'hidden');
 
                        $this.css('height', editorHeight + 'px');
                });