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:
Scott Taylor 2014-08-18 02:25:43 +00:00
parent eaf912ec54
commit 87fe6870e0
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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 );