equal
deleted
inserted
replaced
177 this.onMdpEvent("Annotation.show","show"); |
177 this.onMdpEvent("Annotation.show","show"); |
178 this.onMdpEvent("Annotation.minimize","minimize"); |
178 this.onMdpEvent("Annotation.minimize","minimize"); |
179 this.onMdpEvent("Annotation.maximize","maximize"); |
179 this.onMdpEvent("Annotation.maximize","maximize"); |
180 this.onMdpEvent("Annotation.getBounds","sendBounds"); |
180 this.onMdpEvent("Annotation.getBounds","sendBounds"); |
181 this.$.find(".Ldt-Annotation-MaxMinButton").click(this.functionWrapper("toggleSize")); |
181 this.$.find(".Ldt-Annotation-MaxMinButton").click(this.functionWrapper("toggleSize")); |
|
182 this.$.on("resize", function () { _this.width = _this.$.parent().width(); |
|
183 _this.$.css({ width: _this.width }); |
|
184 }); |
182 this.getWidgetAnnotations().forEach(function(_a) { |
185 this.getWidgetAnnotations().forEach(function(_a) { |
183 _a.on("enter", function() { |
186 _a.on("enter", function() { |
184 drawAnnotation(_a); |
187 drawAnnotation(_a); |
185 }); |
188 }); |
186 }); |
189 }); |
192 title: currentAnnotation.title, |
195 title: currentAnnotation.title, |
193 description: currentAnnotation.description, |
196 description: currentAnnotation.description, |
194 image: currentAnnotation.thumbnail, |
197 image: currentAnnotation.thumbnail, |
195 uri: (typeof currentAnnotation.url !== "undefined" |
198 uri: (typeof currentAnnotation.url !== "undefined" |
196 ? currentAnnotation.url |
199 ? currentAnnotation.url |
197 : (document.location.href.replace(/#.*$/,'') + '#id=' + currentAnnotation.id)) |
200 : (document.location.href.replace(/#.*$/,'') + '#id=' + currentAnnotation.id)), |
|
201 text: '[' + currentAnnotation.begin.toString() + '] ' + currentAnnotation.title |
198 }; |
202 }; |
199 }); |
203 }); |
200 }; |
204 }; |
201 |
205 |
202 IriSP.Widgets.Annotation.prototype.sendBounds = function() { |
206 IriSP.Widgets.Annotation.prototype.sendBounds = function() { |