Make WordPress Core

Changeset 39657 for trunk/src


Ignore:
Timestamp:
12/30/2016 07:43:41 AM (10 years ago)
Author:
dd32
Message:

Updates: Show the Authentication key settings after selecting the SSH transport in both the modal, and also on the plugin/theme updates screen.

Props afercia.
Fixes #39057 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r39535 r39657  
    15171517         */
    15181518        wp.updates.showErrorInCredentialsForm = function( message ) {
    1519                 var $modal = $( '#request-filesystem-credentials-form' );
    1520 
    15211519                // Remove any existing error.
    1522                 $modal.find( '.notice' ).remove();
    1523                 $modal.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error"><p>' + message + '</p></div>' );
     1520                $filesystemForm.find( '.notice' ).remove();
     1521                $filesystemForm.find( '#request-filesystem-credentials-title' ).after( '<div class="notice notice-alt notice-error"><p>' + message + '</p></div>' );
    15241522        };
    15251523
     
    16711669                var $pluginFilter        = $( '#plugin-filter' ),
    16721670                        $bulkActionForm      = $( '#bulk-action-form' ),
     1671                        $filesystemForm      = $( '#request-filesystem-credentials-form' ),
    16731672                        $filesystemModal     = $( '#request-filesystem-credentials-dialog' ),
    16741673                        $pluginSearch        = $( '.plugins-php .wp-filter-search' ),
     
    17261725                 * @since 4.2.0
    17271726                 */
    1728                 $filesystemModal.on( 'change', 'input[name="connection_type"]', function() {
     1727                $filesystemForm.on( 'change', 'input[name="connection_type"]', function() {
    17291728                        $( '#ssh-keys' ).toggleClass( 'hidden', ( 'ssh' !== $( this ).val() ) );
    17301729                } ).change();
Note: See TracChangeset for help on using the changeset viewer.