diff -r 982d2226771c -r cfcbac34d020 src/js/widgets.js --- a/src/js/widgets.js Fri Nov 09 15:27:52 2012 +0100 +++ b/src/js/widgets.js Fri Nov 16 17:36:56 2012 +0100 @@ -121,7 +121,13 @@ } IriSP.Widgets.Widget.prototype.getWidgetAnnotations = function() { - return typeof this.annotation_type !== "undefined" && this.annotation_type ? this.media.getAnnotationsByTypeTitle(this.annotation_type) : this.media.getAnnotations(); + if (typeof this.annotation_type === "undefined") { + return this.media.getAnnotations(); + } + if (this.annotation_type.elementType === "annotationType") { + return this.annotation_type.getAnnotations(); + } + return this.media.getAnnotationsByTypeTitle(this.annotation_type); } IriSP.Widgets.Widget.prototype.getWidgetAnnotationsAtTime = function() {