X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/78ff9d91a14da1f53bd3f1ffcab1264d92359b72..f34e3c5e1f96e4214461c0b72b651ad48ccffe50:/wp-admin/js/dashboard.js diff --git a/wp-admin/js/dashboard.js b/wp-admin/js/dashboard.js index 4d4eb50d..a2a846cd 100644 --- a/wp-admin/js/dashboard.js +++ b/wp-admin/js/dashboard.js @@ -64,6 +64,9 @@ jQuery(document).ready( function($) { /* QuickPress */ quickPressLoad = function() { var act = $('#quickpost-action'), t; + + $( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false ); + t = $('#quick-press').submit( function() { $('#dashboard_quick_press #publishing-action .spinner').show(); $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true); @@ -121,15 +124,13 @@ jQuery(document).ready( function($) { }; quickPressLoad(); - $( '.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(); - }); + $( '.meta-box-sortables' ).sortable( 'option', 'containment', '#wpwrap' ); 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( '' ); @@ -179,8 +180,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'); });