mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media Grid: JSHint fixes.
See #24716. Built from https://develop.svn.wordpress.org/trunk@28998 git-svn-id: http://core.svn.wordpress.org/trunk@28786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6b377e12a0
commit
53bd731570
@ -1,3 +1,4 @@
|
|||||||
|
/* global _wpMediaViewsL10n, setUserSetting, deleteUserSetting, MediaElementPlayer */
|
||||||
(function($, _, Backbone, wp) {
|
(function($, _, Backbone, wp) {
|
||||||
var media = wp.media, l10n;
|
var media = wp.media, l10n;
|
||||||
|
|
||||||
@ -94,7 +95,7 @@
|
|||||||
_content: function() {
|
_content: function() {
|
||||||
var mode = this.get( 'content' );
|
var mode = this.get( 'content' );
|
||||||
if ( mode ) {
|
if ( mode ) {
|
||||||
this.frame[ 'content' ].render( mode );
|
this.frame.content.render( mode );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -218,13 +219,13 @@
|
|||||||
|
|
||||||
editPreviousAttachment: function( currentModel ) {
|
editPreviousAttachment: function( currentModel ) {
|
||||||
var library = this.state().get('library'),
|
var library = this.state().get('library'),
|
||||||
currentModelIndex = library.indexOf( currentModel );
|
currentModelIndex = library.indexOf( currentModel );
|
||||||
this.trigger( 'edit:attachment', library.at( currentModelIndex - 1 ) );
|
this.trigger( 'edit:attachment', library.at( currentModelIndex - 1 ) );
|
||||||
},
|
},
|
||||||
|
|
||||||
editNextAttachment: function( currentModel ) {
|
editNextAttachment: function( currentModel ) {
|
||||||
var library = this.state().get('library'),
|
var library = this.state().get('library'),
|
||||||
currentModelIndex = library.indexOf( currentModel );
|
currentModelIndex = library.indexOf( currentModel );
|
||||||
this.trigger( 'edit:attachment', library.at( currentModelIndex + 1 ) );
|
this.trigger( 'edit:attachment', library.at( currentModelIndex + 1 ) );
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -342,7 +343,7 @@
|
|||||||
'click .right': 'nextMediaItem'
|
'click .right': 'nextMediaItem'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function( options ) {
|
initialize: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
media.view.Frame.prototype.initialize.apply( this, arguments );
|
media.view.Frame.prototype.initialize.apply( this, arguments );
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ function wp_print_media_templates() {
|
|||||||
<input type="checkbox" data-setting="title" {{ '' === getUserSetting( 'hidegridtitle' ) && 'checked' }} />
|
<input type="checkbox" data-setting="title" {{ '' === getUserSetting( 'hidegridtitle' ) && 'checked' }} />
|
||||||
</label>
|
</label>
|
||||||
<label class="setting">
|
<label class="setting">
|
||||||
<span><?php _e( 'Attached to' ); ?></span>
|
<span><?php _e( 'Uploaded to' ); ?></span>
|
||||||
<input type="checkbox" data-setting="uploadedTo" {{ '' === getUserSetting( 'hidegriduploadedTo' ) && 'checked' }} />
|
<input type="checkbox" data-setting="uploadedTo" {{ '' === getUserSetting( 'hidegriduploadedTo' ) && 'checked' }} />
|
||||||
</label>
|
</label>
|
||||||
<label class="setting">
|
<label class="setting">
|
||||||
|
Loading…
Reference in New Issue
Block a user