src/widgets/Annotation.js
changeset 1073 687133dc13cf
parent 1072 ac1eacb3aa33
--- 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(
                 '<li class="Ldt-Annotation-TagLabel"></li>'
-              ).append(IriSP.jQuery("<span>").text(_trimmedTitle));
-              _el.click(function () {
+              ).append(jQuery("<span>").text(_trimmedTitle));
+              _el.on("click",function () {
                 if (_this.search_on_tag_click) {
                   _this.source.getAnnotations().search(_trimmedTitle);
                 }