From 175fa0adb00543e629356c112af3d0a1388ec4e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFs=20Poujade?= <lois.poujade@tetras-libre.fr>
Date: Tue, 14 Jun 2022 11:11:11 +0200
Subject: [PATCH] Fix annotation deletion

Closes #12
---
 capsule-prototype/js/PopupPanelWidget.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/capsule-prototype/js/PopupPanelWidget.js b/capsule-prototype/js/PopupPanelWidget.js
index 83e0f66..9da3763 100644
--- a/capsule-prototype/js/PopupPanelWidget.js
+++ b/capsule-prototype/js/PopupPanelWidget.js
@@ -926,7 +926,7 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) {
             }
             deleteElement
                 .click(function () {
-                    window.app.rekall.Rekall('pubSub').publish('', {
+                    window.app.rekall.Rekall('pubSub').publish('alert', {
                         message: "Do you really want to delete this file from the project ?",
                         buttons: "yesnodelete"
                     });
-- 
GitLab