From a27453494d5074b3bd9de69a3d4d197aae521515 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20R=C3=B6wenstrunk?= <roewenstrunk@uni-paderborn.de>
Date: Fri, 24 Jan 2025 09:50:56 +0100
Subject: [PATCH] Show/hide annotations in texts

---
 app/view/window/text/TextView.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/view/window/text/TextView.js b/app/view/window/text/TextView.js
index e6e2b00ce..9e2180b92 100644
--- a/app/view/window/text/TextView.js
+++ b/app/view/window/text/TextView.js
@@ -120,7 +120,7 @@ Ext.define('EdiromOnline.view.window.text.TextView', {
         var me = this;
 
         if(me.annotationsLoaded) {
-            var annos = Ext.query('#' + me.id + '_textCont span.annotation');
+            var annos = Ext.query('#' + me.id + '_textCont div.annotation');
             Ext.Array.each(annos, function(anno) {
                 Ext.get(anno).show();
             });
@@ -220,7 +220,7 @@ Ext.define('EdiromOnline.view.window.text.TextView', {
 
     hideAnnotations: function() {
         var me = this;
-        var annos = Ext.query('#' + me.id + '_textCont span.annotation');
+        var annos = Ext.query('#' + me.id + '_textCont div.annotation');
         Ext.Array.each(annos, function(anno) {
             Ext.get(anno).hide();
         });
-- 
GitLab