Author: rmarianski
Date: 2009-10-23 15:59:43 -0400 (Fri, 23 Oct 2009)
New Revision: 25796
Modified:
WordpressWidgets/flowplayer_wp/flowplayer_wp.php
Log:
using the id prevents ie errors for some reason
Modified: WordpressWidgets/flowplayer_wp/flowplayer_wp.php
===================================================================
--- WordpressWidgets/flowplayer_wp/flowplayer_wp.php 2009-10-23 19:34:56 UTC
(rev 25795)
+++ WordpressWidgets/flowplayer_wp/flowplayer_wp.php 2009-10-23 19:59:43 UTC
(rev 25796)
@@ -29,8 +29,8 @@
$j = jQuery.noConflict();
$j(document).ready( function () {
- $j("div.player").each( function () {
- var post_id = $j(this).attr('id');
+ $j("#player").each( function () {
+ var post_id = $j(this).find('a').attr('id');
var image_node = $j(this).find("img");
var height = image_node.attr("height");
var width = image_node.attr("width");
@@ -108,9 +108,9 @@
$div_class="pframe4x3";
}
?>
- <div class="player <?php echo $div_class; ?>" id="<?php echo
$post_id; ?>">
+ <div id="player" class="player <?php echo $div_class; ?>">
<img alt="<?php the_title(); ?>" width="<?php echo $width; ?>"
height="<?php echo $height; ?>" src="<?php echo $this->get_poster($post_id);
?>" />
- <a class="playbutton" onclick="return false;" href="<?php echo
$this->get_video($post_id); ?>">
+ <a id="<?php echo $post_id; ?>" class="playbutton"
onclick="return false;" href="<?php echo $this->get_video($post_id); ?>">
</a>
</div>
<?php
--
To unsubscribe send an email with subject "unsubscribe" to
[email protected]. Please contact
[email protected] for questions.