# HG changeset patch # User cavaliet # Date 1335435028 -7200 # Node ID c95b51bd1da3d965ae6dbd91c8d74afff2945184 # Parent 64ec9d0852d5ea912889de22807da7535b7dc6f7 SlideShareWidget better management of container. diff -r 64ec9d0852d5 -r c95b51bd1da3 src/ldt/ldt/ldt_utils/templates/front/front_player.html --- 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 @@
+
+
+

Slide Share

+
+

{% trans 'All annotations on the media' %}

-
{% endblock %} diff -r 64ec9d0852d5 -r c95b51bd1da3 src/ldt/ldt/static/ldt/css/front_player.css --- 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; +} diff -r 64ec9d0852d5 -r c95b51bd1da3 src/ldt/ldt/static/ldt/js/LdtPlayer-release.js --- 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;