SlideShareWidget better management of container.
--- a/src/ldt/ldt/ldt_utils/templates/front/front_player.html Tue Apr 24 12:20:04 2012 +0200
+++ b/src/ldt/ldt/ldt_utils/templates/front/front_player.html Thu Apr 26 12:10:28 2012 +0200
@@ -92,10 +92,14 @@
<!-- Right column -->
<div id="player_col_d">
+ <div id="slides_container">
+ <div class="li_h2">
+ <h2>Slide Share</h2>
+ </div>
+ </div>
<div class="li_h2">
<h2>{% trans 'All annotations on the media' %}</h2>
</div>
- <div id="slides_container"></div>
<div id="annot_media"></div>
</div>
{% endblock %}
--- a/src/ldt/ldt/static/ldt/css/front_player.css Tue Apr 24 12:20:04 2012 +0200
+++ b/src/ldt/ldt/static/ldt/css/front_player.css Thu Apr 26 12:10:28 2012 +0200
@@ -52,7 +52,7 @@
width: 400px; margin-left: 10px;
}
-#annot_media, #slides_container {
+#annot_media {
width: 400px; margin: 5px 0 10px 10px;
}
@@ -67,3 +67,7 @@
div.une_annot {
width: 280px;
}
+
+.Ldt-SlideShare {
+ margin: 0px 0 10px 10px;
+}
--- a/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Tue Apr 24 12:20:04 2012 +0200
+++ b/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Thu Apr 26 12:10:28 2012 +0200
@@ -4905,7 +4905,7 @@
return;
}
var templ = Mustache.to_html(IriSP.slideShareWidget_template);
- this.selector.html(templ);
+ this.selector.append(templ);
// Synchro management
this._disableUpdate = false;
@@ -4931,7 +4931,8 @@
var annotations = this._serializer._data.annotations;
var view_type = this._serializer.getSlideShareType();
if(typeof(view_type) === "undefined") {
- if(console){ if(console.log){ console.log("No annotation-type for slideshare widget, this widget is canceled."); } }
+ if(console){ if(console.log){ console.log("No annotation-type for slideshare widget, this widget is canceled and the container is visible hidden."); } }
+ this.selector.hide();
return;
}
var i = 0;