equal
deleted
inserted
replaced
13 if(this.selector.length==0){ |
13 if(this.selector.length==0){ |
14 if(console){ if(console.log){ console.log("No div for slideshare widget, this widget is canceled. id = " + this._id); } } |
14 if(console){ if(console.log){ console.log("No div for slideshare widget, this widget is canceled. id = " + this._id); } } |
15 return; |
15 return; |
16 } |
16 } |
17 var templ = Mustache.to_html(IriSP.slideShareWidget_template); |
17 var templ = Mustache.to_html(IriSP.slideShareWidget_template); |
18 this.selector.html(templ); |
18 this.selector.append(templ); |
19 |
19 |
20 // Synchro management |
20 // Synchro management |
21 this._disableUpdate = false; |
21 this._disableUpdate = false; |
22 this.selector.find('.sync_on').click(function(event) { self.syncHandler.call(self, event); }); |
22 this.selector.find('.sync_on').click(function(event) { self.syncHandler.call(self, event); }); |
23 this.selector.find('.sync_off').click(function(event) { self.unSyncHandler.call(self, event); }); |
23 this.selector.find('.sync_off').click(function(event) { self.unSyncHandler.call(self, event); }); |
39 |
39 |
40 // Get data from "slideshare" cutting/annotation-type |
40 // Get data from "slideshare" cutting/annotation-type |
41 var annotations = this._serializer._data.annotations; |
41 var annotations = this._serializer._data.annotations; |
42 var view_type = this._serializer.getSlideShareType(); |
42 var view_type = this._serializer.getSlideShareType(); |
43 if(typeof(view_type) === "undefined") { |
43 if(typeof(view_type) === "undefined") { |
44 if(console){ if(console.log){ console.log("No annotation-type for slideshare widget, this widget is canceled."); } } |
44 if(console){ if(console.log){ console.log("No annotation-type for slideshare widget, this widget is canceled and the container is visible hidden."); } } |
|
45 this.selector.hide(); |
45 return; |
46 return; |
46 } |
47 } |
47 var i = 0; |
48 var i = 0; |
48 this.segments_slides = []; |
49 this.segments_slides = []; |
49 var nb_annot = annotations.length; |
50 var nb_annot = annotations.length; |