Shiny Updates: Disable body scrolling when filesystem request modal is open.
props ericlewis. fixes #31607. git-svn-id: https://develop.svn.wordpress.org/trunk@31753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa3131ee02
commit
a2abc13285
@ -386,6 +386,7 @@ window.wp = window.wp || {};
|
||||
wp.updates.requestFilesystemCredentials = function() {
|
||||
if ( wp.updates.updateDoneSuccessfully === false ) {
|
||||
wp.updates.updateLock = true;
|
||||
$( 'body' ).addClass( 'modal-open' );
|
||||
$( '#request-filesystem-credentials-dialog' ).show();
|
||||
}
|
||||
};
|
||||
@ -403,6 +404,7 @@ window.wp = window.wp || {};
|
||||
wp.updates.filesystemCredentials.ssh.privateKey = $('#private_key').val();
|
||||
|
||||
$( '#request-filesystem-credentials-dialog' ).hide();
|
||||
$( 'body' ).removeClass( 'modal-open' );
|
||||
|
||||
// Unlock and invoke the queue.
|
||||
wp.updates.updateLock = false;
|
||||
|
Loading…
Reference in New Issue
Block a user