WordPress.org

Make WordPress Core

Changeset 34068


Ignore:
Timestamp:
09/12/2015 12:09:09 AM (5 years ago)
Author:
azaozz
Message:

Settings, password field: fix placement of the error icon and removal of the error class.

Props liljimmi, adamsilverstein.
Fixes #33406 for trunk.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r34011 r34068  
    249249}
    250250
     251/* Adjust error indicator for password layout */
     252.form-table .form-required.user-pass1-wrap.form-invalid td:after {
     253    content: '';
     254}
     255
     256.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after {
     257    content: '\f534';
     258    font: normal 20px/1 dashicons;
     259    color: #dc3232;
     260    margin: 0 6px 0 -29px;
     261    vertical-align: middle;
     262}
     263
    251264.form-input-tip {
    252265    color: #666;
  • trunk/src/wp-includes/js/wp-ajax-response.js

    r31690 r34068  
    5151    },
    5252    invalidateForm: function ( selector ) {
    53         return jQuery( selector ).addClass( 'form-invalid' ).find('input:visible').change( function() { jQuery(this).closest('.form-invalid').removeClass( 'form-invalid' ); } );
     53        return jQuery( selector ).addClass( 'form-invalid' ).find('input').one( 'change', function() { jQuery(this).closest('.form-invalid').removeClass( 'form-invalid' ); } );
    5454    },
    5555    validateForm: function( selector ) {
Note: See TracChangeset for help on using the changeset viewer.