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) {
|
||||
var media = wp.media, l10n;
|
||||
|
||||
|
@ -94,7 +95,7 @@
|
|||
_content: function() {
|
||||
var mode = this.get( 'content' );
|
||||
if ( mode ) {
|
||||
this.frame[ 'content' ].render( mode );
|
||||
this.frame.content.render( mode );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -218,13 +219,13 @@
|
|||
|
||||
editPreviousAttachment: function( currentModel ) {
|
||||
var library = this.state().get('library'),
|
||||
currentModelIndex = library.indexOf( currentModel );
|
||||
currentModelIndex = library.indexOf( currentModel );
|
||||
this.trigger( 'edit:attachment', library.at( currentModelIndex - 1 ) );
|
||||
},
|
||||
|
||||
editNextAttachment: function( currentModel ) {
|
||||
var library = this.state().get('library'),
|
||||
currentModelIndex = library.indexOf( currentModel );
|
||||
currentModelIndex = library.indexOf( currentModel );
|
||||
this.trigger( 'edit:attachment', library.at( currentModelIndex + 1 ) );
|
||||
},
|
||||
|
||||
|
@ -342,7 +343,7 @@
|
|||
'click .right': 'nextMediaItem'
|
||||
},
|
||||
|
||||
initialize: function( options ) {
|
||||
initialize: function() {
|
||||
var self = this;
|
||||
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' }} />
|
||||
</label>
|
||||
<label class="setting">
|
||||
<span><?php _e( 'Attached to' ); ?></span>
|
||||
<span><?php _e( 'Uploaded to' ); ?></span>
|
||||
<input type="checkbox" data-setting="uploadedTo" {{ '' === getUserSetting( 'hidegriduploadedTo' ) && 'checked' }} />
|
||||
</label>
|
||||
<label class="setting">
|
||||
|
|
Loading…
Reference in New Issue