Fixes child selector for param[name=movie], #168
This commit is contained in:
parent
e7032f2f67
commit
2f60361a7b
@ -89,7 +89,7 @@ function flashVideoFallback(){
|
|||||||
function wrapFlashVideos() {
|
function wrapFlashVideos() {
|
||||||
$('object').each(function(object) {
|
$('object').each(function(object) {
|
||||||
object = $(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();
|
var wrapper = object.before('<div class="flash-video"><div>').previous();
|
||||||
$(wrapper).children().append(object);
|
$(wrapper).children().append(object);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user