WordPress.org

Make WordPress Core

Changeset 32777


Ignore:
Timestamp:
06/15/2015 03:19:30 AM (5 years ago)
Author:
dd32
Message:

Updates: Better handling when the credential form is long (such as when SSH is active). This adds scrolling to the dialogue, and hides the SSH-specific fields when not using the SSH handler.
See #32435

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

Legend:

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

    r32677 r32777  
    522522    position: fixed;
    523523    top: 30%;
     524    max-height: 70%;
    524525    left: 50%;
    525526    width: 450px;
     
    530531    line-height: 1.5;
    531532    z-index: 1000005;
     533    overflow-y: auto;
    532534}
    533535
  • trunk/src/wp-admin/css/forms.css

    r32772 r32777  
    863863.request-filesystem-credentials-dialog .notification-dialog {
    864864    top: 15%;
     865    max-height: 85%;
    865866}
    866867
     
    11721173        width: 100%;
    11731174        height: 100%;
     1175        max-height: 100%;
    11741176        position: fixed;
    11751177        top: 0;
    11761178        margin: 0;
    11771179        left: 0;
    1178         overflow-y: auto;
    11791180    }
    11801181}
  • trunk/src/wp-admin/js/updates.js

    r32776 r32777  
    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.