Updates: Better handling when the credential form is long (such as when SSH is active). This adds scrolling to the dialogue, and hides the SSH-specific fields when not using the SSH handler.
See #32435 Built from https://develop.svn.wordpress.org/trunk@32777 git-svn-id: http://core.svn.wordpress.org/trunk@32748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a4b4918377
commit
04325cd834
|
@ -521,6 +521,7 @@ span.wp-media-buttons-icon:before {
|
||||||
.notification-dialog {
|
.notification-dialog {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 30%;
|
top: 30%;
|
||||||
|
max-height: 70%;
|
||||||
right: 50%;
|
right: 50%;
|
||||||
width: 450px;
|
width: 450px;
|
||||||
margin-right: -225px;
|
margin-right: -225px;
|
||||||
|
@ -529,6 +530,7 @@ span.wp-media-buttons-icon:before {
|
||||||
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
z-index: 1000005;
|
z-index: 1000005;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-dialog-background {
|
.notification-dialog-background {
|
||||||
|
|
|
@ -521,6 +521,7 @@ span.wp-media-buttons-icon:before {
|
||||||
.notification-dialog {
|
.notification-dialog {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 30%;
|
top: 30%;
|
||||||
|
max-height: 70%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 450px;
|
width: 450px;
|
||||||
margin-left: -225px;
|
margin-left: -225px;
|
||||||
|
@ -529,6 +530,7 @@ span.wp-media-buttons-icon:before {
|
||||||
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
z-index: 1000005;
|
z-index: 1000005;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-dialog-background {
|
.notification-dialog-background {
|
||||||
|
|
|
@ -862,6 +862,7 @@ table.form-table td .updated p {
|
||||||
|
|
||||||
.request-filesystem-credentials-dialog .notification-dialog {
|
.request-filesystem-credentials-dialog .notification-dialog {
|
||||||
top: 15%;
|
top: 15%;
|
||||||
|
max-height: 85%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.request-filesystem-credentials-dialog-content {
|
.request-filesystem-credentials-dialog-content {
|
||||||
|
@ -1171,11 +1172,11 @@ table.form-table td .updated p {
|
||||||
.request-filesystem-credentials-dialog .notification-dialog{
|
.request-filesystem-credentials-dialog .notification-dialog{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
overflow-y: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -862,6 +862,7 @@ table.form-table td .updated p {
|
||||||
|
|
||||||
.request-filesystem-credentials-dialog .notification-dialog {
|
.request-filesystem-credentials-dialog .notification-dialog {
|
||||||
top: 15%;
|
top: 15%;
|
||||||
|
max-height: 85%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.request-filesystem-credentials-dialog-content {
|
.request-filesystem-credentials-dialog-content {
|
||||||
|
@ -1171,11 +1172,11 @@ table.form-table td .updated p {
|
||||||
.request-filesystem-credentials-dialog .notification-dialog{
|
.request-filesystem-credentials-dialog .notification-dialog{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
overflow-y: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -467,6 +467,11 @@ window.wp = window.wp || {};
|
||||||
wp.updates.requestForCredentialsModalCancel();
|
wp.updates.requestForCredentialsModalCancel();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Hide SSH fields when not selected
|
||||||
|
$( '#request-filesystem-credentials-dialog input[name="connection_type"]' ).on( 'change', function() {
|
||||||
|
$( this ).parents( 'form' ).find( '#private_key, #public_key' ).parents( 'label' ).toggle( ( 'ssh' == $( this ).val() ) );
|
||||||
|
}).change();
|
||||||
|
|
||||||
// Click handler for plugin updates in List Table view.
|
// Click handler for plugin updates in List Table view.
|
||||||
$( '.plugin-update-tr' ).on( 'click', '.update-link', function( e ) {
|
$( '.plugin-update-tr' ).on( 'click', '.update-link', function( e ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -490,7 +495,6 @@ window.wp = window.wp || {};
|
||||||
wp.updates.updatePlugin( $button.data( 'plugin' ), $button.data( 'slug' ) );
|
wp.updates.updatePlugin( $button.data( 'plugin' ), $button.data( 'slug' ) );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
//
|
|
||||||
$( '#plugin_update_from_iframe' ).on( 'click' , function( e ) {
|
$( '#plugin_update_from_iframe' ).on( 'click' , function( e ) {
|
||||||
var target, data;
|
var target, data;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32776';
|
$wp_version = '4.3-alpha-32777';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue