Media Modal: Restore to the previous filter and search error message.
fixes #28963. Built from https://develop.svn.wordpress.org/trunk@29532 git-svn-id: http://core.svn.wordpress.org/trunk@29308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a0f2fe6599
commit
a28bc71819
|
@ -259,7 +259,8 @@
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
box-shadow: -1px 0px 1px rgba(0,0,0,.3);
|
-webkit-box-shadow: -1px 0 1px rgba(0,0,0,.3);
|
||||||
|
box-shadow: -1px 0 1px rgba(0,0,0,.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-php .mode-grid .media-sidebar .media-uploader-status {
|
.upload-php .mode-grid .media-sidebar .media-uploader-status {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -259,7 +259,8 @@
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
box-shadow: -1px 0px 1px rgba(0,0,0,.3);
|
-webkit-box-shadow: -1px 0 1px rgba(0,0,0,.3);
|
||||||
|
box-shadow: -1px 0 1px rgba(0,0,0,.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-php .mode-grid .media-sidebar .media-uploader-status {
|
.upload-php .mode-grid .media-sidebar .media-uploader-status {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -226,11 +226,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
sidebarVisibility: function() {
|
sidebarVisibility: function() {
|
||||||
if ( this.errors.length ) {
|
this.browserView.$( '.media-sidebar' ).toggle( !! this.errors.length );
|
||||||
this.browserView.$( '.media-sidebar' ).show();
|
|
||||||
} else {
|
|
||||||
this.browserView.$( '.media-sidebar' ).hide();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
bindDeferred: function() {
|
bindDeferred: function() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5979,7 +5979,7 @@
|
||||||
this.uploader = new media.view.UploaderInline({
|
this.uploader = new media.view.UploaderInline({
|
||||||
controller: this.controller,
|
controller: this.controller,
|
||||||
status: false,
|
status: false,
|
||||||
message: l10n.noItemsFound,
|
message: this.controller.isModeActive( 'grid' ) ? '' : l10n.noItemsFound,
|
||||||
canClose: this.controller.isModeActive( 'grid' )
|
canClose: this.controller.isModeActive( 'grid' )
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -6011,6 +6011,8 @@
|
||||||
|
|
||||||
this.views.add( this.attachments );
|
this.views.add( this.attachments );
|
||||||
|
|
||||||
|
|
||||||
|
if ( this.controller.isModeActive( 'grid' ) ) {
|
||||||
this.attachmentsNoResults = new media.View({
|
this.attachmentsNoResults = new media.View({
|
||||||
controller: this.controller,
|
controller: this.controller,
|
||||||
tagName: 'p'
|
tagName: 'p'
|
||||||
|
@ -6020,6 +6022,7 @@
|
||||||
this.attachmentsNoResults.$el.html( l10n.noMedia );
|
this.attachmentsNoResults.$el.html( l10n.noMedia );
|
||||||
|
|
||||||
this.views.add( this.attachmentsNoResults );
|
this.views.add( this.attachmentsNoResults );
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
createSidebar: function() {
|
createSidebar: function() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -185,9 +185,9 @@ function wp_print_media_templates() {
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="upload-ui">
|
<div class="upload-ui">
|
||||||
<h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files here' ); ?></h3>
|
<h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
|
||||||
<p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
|
<p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
|
||||||
<a href="#" class="browser button"><?php _e( 'Select Files' ); ?></a>
|
<a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="upload-inline-status"></div>
|
<div class="upload-inline-status"></div>
|
||||||
|
|
Loading…
Reference in New Issue