Fixes child selector for param[name=movie], #168

This commit is contained in:
Frederic Hemberger 2011-09-24 12:43:44 +02:00
parent e7032f2f67
commit 2f60361a7b

View File

@ -89,7 +89,7 @@ function flashVideoFallback(){
function wrapFlashVideos() {
$('object').each(function(object) {
object = $(object);
if (object.children('param[name=movie]')) {
if ( $('param[name=movie]', object).length ) {
var wrapper = object.before('<div class="flash-video"><div>').previous();
$(wrapper).children().append(object);
}