From 2f60361a7b2c6300c1bca883f722aedc01ae9408 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sat, 24 Sep 2011 12:43:44 +0200 Subject: Fixes child selector for param[name=movie], #168 --- .themes/classic/source/javascripts/octopress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.themes/classic/source/javascripts/octopress.js') diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index a23ab502..1b1f90fc 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -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('
').previous(); $(wrapper).children().append(object); } -- cgit v1.2.1