Browsers other than Firefox need a timeout when parsing audio and video shortcodes into MCE views.

See [27655].


Built from https://develop.svn.wordpress.org/trunk@27987


git-svn-id: http://core.svn.wordpress.org/trunk@27817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-04-07 15:12:15 +00:00
parent 5f76bf3b0d
commit 5a67d92611
2 changed files with 4 additions and 9 deletions

View File

@ -457,14 +457,9 @@ window.wp = window.wp || {};
media = wp.media.view.MediaDetails.prepareSrc( media.get(0) ); media = wp.media.view.MediaDetails.prepareSrc( media.get(0) );
// Thanks, Firefox! setTimeout( function() {
if ( firefox ) { self.player = new MediaElementPlayer( media, this.mejsSettings );
setTimeout( function() { }, 75 );
self.player = new MediaElementPlayer( media, this.mejsSettings );
}, 50 );
} else {
this.player = new MediaElementPlayer( media, this.mejsSettings );
}
}, },
/** /**

File diff suppressed because one or more lines are too long