Media Grid: Don't show attachment details in the "sidebar" for errors.
Props ocean90. Fixes #29037. git-svn-id: https://develop.svn.wordpress.org/trunk@29527 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eaf912ec54
commit
87fe6870e0
@ -476,6 +476,12 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sidebar-for-errors .attachment-details,
|
||||
.sidebar-for-errors .compat-item,
|
||||
.sidebar-for-errors .media-progress-bar,
|
||||
.sidebar-for-errors .upload-details {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu
|
||||
|
@ -5771,6 +5771,10 @@
|
||||
|
||||
if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
|
||||
this.$el.addClass( 'hide-sidebar' );
|
||||
|
||||
if ( 'errors' === this.options.sidebar ) {
|
||||
this.$el.addClass( 'sidebar-for-errors' );
|
||||
}
|
||||
}
|
||||
|
||||
this.collection.on( 'add remove reset', this.updateContent, this );
|
||||
|
Loading…
Reference in New Issue
Block a user