Make WordPress Core

Changeset 29323


Ignore:
Timestamp:
07/29/2014 03:33:07 PM (12 years ago)
Author:
SergeyBiryukov
Message:

QuickPress: Disable autocomplete for content, enable "Save Draft" button on load.

props morganestes, michalzuber.
fixes #27760.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r29206 r29323  
    457457        <div class="textarea-wrap" id="description-wrap">
    458458            <label class="screen-reader-text prompt" for="content" id="content-prompt-text"><?php _e( 'What&#8217;s on your mind?' ); ?></label>
    459             <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"></textarea>
     459            <textarea name="content" id="content" class="mceEditor" rows="3" cols="15" autocomplete="off"></textarea>
    460460        </div>
    461461
  • trunk/src/wp-admin/js/dashboard.js

    r28103 r29323  
    6565    quickPressLoad = function() {
    6666        var act = $('#quickpost-action'), t;
     67
     68        $( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , false );
     69
    6770        t = $('#quick-press').submit( function() {
    6871            $('#dashboard_quick_press #publishing-action .spinner').show();
Note: See TracChangeset for help on using the changeset viewer.