diff -r ac1eacb3aa33 -r 687133dc13cf src/widgets/Annotation.js --- a/src/widgets/Annotation.js Wed Sep 04 17:32:50 2024 +0200 +++ b/src/widgets/Annotation.js Thu Oct 17 00:58:24 2024 +0200 @@ -1,6 +1,8 @@ // TODO: Migrate Timeupdate functions to Extract import annotationStyles from "./Annotation.module.css"; +import jQuery from "jquery"; + // Annotation class const Annotation = function (ns) { return class extends ns.Widgets.Widget { @@ -132,10 +134,10 @@ _tags.forEach(function (_tag) { var _trimmedTitle = _tag.title.replace(/(^\s+|\s+$)/g, ""); if (_trimmedTitle) { - var _el = IriSP.jQuery( + var _el = jQuery( '
' - ).append(IriSP.jQuery("").text(_trimmedTitle)); - _el.click(function () { + ).append(jQuery("").text(_trimmedTitle)); + _el.on("click",function () { if (_this.search_on_tag_click) { _this.source.getAnnotations().search(_trimmedTitle); }