mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
When editing/viewing the details of a [video]
shortcode that has Vimeo as its source, and Froogaloop
has not already been lazy-loaded, check the details of the state's model for the video src
, instead of the HTML element.
See #29267. git-svn-id: https://develop.svn.wordpress.org/trunk@31625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
21568b8cc1
commit
ef10d719eb
@ -820,7 +820,7 @@ MediaDetails = AttachmentDisplay.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
if ( this.media.src.indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) {
|
||||
if ( this.model.get( 'src' ).indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) {
|
||||
baseSettings = wp.media.mixin.mejsSettings;
|
||||
this.scriptXhr = $.getScript( baseSettings.pluginPath + 'froogaloop.min.js', _.bind( this.loadPlayer, this ) );
|
||||
} else {
|
||||
|
@ -93,7 +93,7 @@ MediaDetails = AttachmentDisplay.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
if ( this.media.src.indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) {
|
||||
if ( this.model.get( 'src' ).indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) {
|
||||
baseSettings = wp.media.mixin.mejsSettings;
|
||||
this.scriptXhr = $.getScript( baseSettings.pluginPath + 'froogaloop.min.js', _.bind( this.loadPlayer, this ) );
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user