mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
QuickPress: Disable autocomplete for content, enable "Save Draft" button on load.
props morganestes, michalzuber. fixes #27760. git-svn-id: https://develop.svn.wordpress.org/trunk@29323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fd1652d6bb
commit
e4c8f3a843
@ -456,7 +456,7 @@ function wp_dashboard_quick_press( $error_msg = false ) {
|
||||
|
||||
<div class="textarea-wrap" id="description-wrap">
|
||||
<label class="screen-reader-text prompt" for="content" id="content-prompt-text"><?php _e( 'What’s on your mind?' ); ?></label>
|
||||
<textarea name="content" id="content" class="mceEditor" rows="3" cols="15"></textarea>
|
||||
<textarea name="content" id="content" class="mceEditor" rows="3" cols="15" autocomplete="off"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="submit">
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user