WordPress.org

Make WordPress Core

Changeset 33304


Ignore:
Timestamp:
07/17/2015 04:02:59 AM (5 years ago)
Author:
dd32
Message:

Updates: Better handling when the credential form is long (such as when SSH is active).

Merges the JS changes from [32777] to the 4.2 branch
See #32435

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

  • branches/4.2/src/wp-admin/js/updates.js

    r33303 r33304  
    468468        });
    469469
     470        // Hide SSH fields when not selected
     471        $( '#request-filesystem-credentials-dialog input[name="connection_type"]' ).on( 'change', function() {
     472            $( this ).parents( 'form' ).find( '#private_key, #public_key' ).parents( 'label' ).toggle( ( 'ssh' == $( this ).val() ) );
     473        }).change();
     474
    470475        // Click handler for plugin updates in List Table view.
    471476        $( '.plugin-update-tr' ).on( 'click', '.update-link', function( e ) {
     
    491496        } );
    492497
    493         //
    494498        $( '#plugin_update_from_iframe' ).on( 'click' , function( e ) {
    495499            var target, data;
Note: See TracChangeset for help on using the changeset viewer.