Changeset 39657
- Timestamp:
- 12/30/2016 07:43:41 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r39535 r39657 1517 1517 */ 1518 1518 wp.updates.showErrorInCredentialsForm = function( message ) { 1519 var $modal = $( '#request-filesystem-credentials-form' );1520 1521 1519 // 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>' ); 1524 1522 }; 1525 1523 … … 1671 1669 var $pluginFilter = $( '#plugin-filter' ), 1672 1670 $bulkActionForm = $( '#bulk-action-form' ), 1671 $filesystemForm = $( '#request-filesystem-credentials-form' ), 1673 1672 $filesystemModal = $( '#request-filesystem-credentials-dialog' ), 1674 1673 $pluginSearch = $( '.plugins-php .wp-filter-search' ), … … 1726 1725 * @since 4.2.0 1727 1726 */ 1728 $filesystem Modal.on( 'change', 'input[name="connection_type"]', function() {1727 $filesystemForm.on( 'change', 'input[name="connection_type"]', function() { 1729 1728 $( '#ssh-keys' ).toggleClass( 'hidden', ( 'ssh' !== $( this ).val() ) ); 1730 1729 } ).change();
Note: See TracChangeset
for help on using the changeset viewer.