Make WordPress Core

Changeset 34119


Ignore:
Timestamp:
09/14/2015 01:06:17 PM (9 years ago)
Author:
ocean90
Message:

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

Merge of [34068] to the 4.3 branch.

Props liljimmi, adamsilverstein.
See #33406.

Location:
branches/4.3/src
Files:
2 edited

Legend:

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

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

    r31690 r34119  
    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.