Changeset 31753
- Timestamp:
- 03/12/2015 02:56:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r31749 r31753 387 387 if ( wp.updates.updateDoneSuccessfully === false ) { 388 388 wp.updates.updateLock = true; 389 $('#request-filesystem-credentials-dialog').show(); 389 $( 'body' ).addClass( 'modal-open' ); 390 $( '#request-filesystem-credentials-dialog' ).show(); 390 391 } 391 392 }; … … 394 395 $( document ).ready( function() { 395 396 // File system credentials form submit noop-er / handler. 396 $( '#request-filesystem-credentials-dialog form').on( 'submit', function() {397 $( '#request-filesystem-credentials-dialog form' ).on( 'submit', function() { 397 398 // Persist the credentials input by the user for the duration of the page load. 398 399 wp.updates.filesystemCredentials.ftp.hostname = $('#hostname').val(); … … 403 404 wp.updates.filesystemCredentials.ssh.privateKey = $('#private_key').val(); 404 405 405 $('#request-filesystem-credentials-dialog').hide(); 406 $( '#request-filesystem-credentials-dialog' ).hide(); 407 $( 'body' ).removeClass( 'modal-open' ); 406 408 407 409 // Unlock and invoke the queue.
Note: See TracChangeset
for help on using the changeset viewer.