# HG changeset patch # User Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> # Date 1309507561 -7200 # Node ID dfda2d71838b2eeaded3210c98cac628329a2a56 # Parent 911d38a8cf955ede526d09b400d97fe8b5f44c34 Correct metadataplayer embed diff -r 911d38a8cf95 -r dfda2d71838b web/mashup/embed_form.php --- a/web/mashup/embed_form.php Thu Jun 30 02:10:38 2011 +0200 +++ b/web/mashup/embed_form.php Fri Jul 01 10:06:01 2011 +0200 @@ -14,11 +14,7 @@ embed Configuration - - - - - + @@ -32,35 +28,6 @@ background-image:none; width:300px; padding:5px; } - .tooltip{ - z-index: 10000000000; - } - #tip{ - position : absolute; - padding : 3px; - z-index: 10000000000; - max-width: 200px; - } - #tip { - display: none; - background: transparent url("../images/white_arrow_long.png"); - font-size: 12px; - height: 125px; - width: 180px; - padding: 10px; - padding-left: 15px; - padding-top: 15px; - padding-right: 15px; - color: black; - z-index: 10000000000; - font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; - overflow:hidden; - } - #chartTimeline{ - padding-top: px; - z-index: 100000; - position : absolute; - } textarea { margin-left:3px; height: 150px; @@ -92,7 +59,7 @@

_("EmbedTitle"); ?>

_("EmbedText"); ?>

- diff -r 911d38a8cf95 -r dfda2d71838b web/mashup/player_embed.php --- a/web/mashup/player_embed.php Thu Jun 30 02:10:38 2011 +0200 +++ b/web/mashup/player_embed.php Fri Jul 01 10:06:01 2011 +0200 @@ -19,9 +19,13 @@ RSLN - Polemic player embed page - + + + @@ -63,6 +67,41 @@ + + + + + - - - - - +
@@ -106,28 +129,25 @@ var paper = Raphael(document.getElementById("chartTimeline"),config.width, config.height); - -
+
diff -r 911d38a8cf95 -r dfda2d71838b web/mashup/polemicaltimeline.php --- a/web/mashup/polemicaltimeline.php Thu Jun 30 02:10:38 2011 +0200 +++ b/web/mashup/polemicaltimeline.php Fri Jul 01 10:06:01 2011 +0200 @@ -118,7 +118,18 @@ jQuery.extend(__IriSP.lib,{jQueryToolTip:"../res/metadataplayer/res/js/jquery.tools.min.js"}); jQuery(document).ready(function() { - + + jQuery("#mdselect_"+metadata_key).attr("selected","selected"); + jQuery("#mdselect").change(function() { + var metadata_key = this.options[this.selectedIndex].value; + window.location.hash = "#metadata="+metadata_key; + window.location.href = window.location.href; + window.location.reload(true); + jQuery("#Embeded").attr('href','embed_form.php?metadata='+metadata_key); + }); + if(metadata_key !== "metadata") { + jQuery("#Embeded").attr('href','embed_form.php?metadata='+metadata_key); + } jQuery("#Embeded").fancybox({ 'width' : 360, 'height' : 360, @@ -127,15 +138,7 @@ 'transitionOut' : 'none', 'type' : 'iframe' }); - - jQuery("#mdselect_"+metadata_key).attr("selected","selected"); - jQuery("#mdselect").change(function() { - var metadata_key = this.options[this.selectedIndex].value; - window.location.hash = "#metadata="+metadata_key; - window.location.href = window.location.href; - window.location.reload(true); - }); });