Don't try to focus disabled input fields in the request filesystem credentials form.

fixes #32064.

git-svn-id: https://develop.svn.wordpress.org/trunk@32267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-04-22 16:56:36 +00:00
parent 2abf4c39ef
commit 5e371ea458
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ window.wp = window.wp || {};
wp.updates.updateLock = false; wp.updates.updateLock = false;
$(document).trigger( 'wp-plugin-update-success', response ); $(document).trigger( 'wp-plugin-update-success', response );
wp.updates.queueChecker(); wp.updates.queueChecker();
}; };
@ -373,7 +373,7 @@ window.wp = window.wp || {};
$( 'body' ).addClass( 'modal-open' ); $( 'body' ).addClass( 'modal-open' );
$modal.show(); $modal.show();
$modal.find( '#hostname' ).focus(); $modal.find( 'input:enabled:first' ).focus();
$modal.keydown( wp.updates.keydown ); $modal.keydown( wp.updates.keydown );
}; };