# 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 @@
@@ -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);
- });
});