SlideShareWidget better management of container.
--- a/src/js/widgets/slideShareWidget.js Tue Apr 24 12:08:47 2012 +0200
+++ b/src/js/widgets/slideShareWidget.js Thu Apr 26 12:09:56 2012 +0200
@@ -15,7 +15,7 @@
return;
}
var templ = Mustache.to_html(IriSP.slideShareWidget_template);
- this.selector.html(templ);
+ this.selector.append(templ);
// Synchro management
this._disableUpdate = false;
@@ -41,7 +41,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;