diff --git a/src/public/javascripts/dialogs/confirm.js b/src/public/javascripts/dialogs/confirm.js
index cadf3cf37..5a103ca70 100644
--- a/src/public/javascripts/dialogs/confirm.js
+++ b/src/public/javascripts/dialogs/confirm.js
@@ -2,10 +2,15 @@ const $dialog = $("#confirm-dialog");
const $confirmContent = $("#confirm-dialog-content");
const $okButton = $("#confirm-dialog-ok-button");
const $cancelButton = $("#confirm-dialog-cancel-button");
+const $custom = $("#confirm-dialog-custom");
+
+const DELETE_NOTE_BUTTON_ID = "confirm-dialog-delete-note";
let resolve;
function confirm(message) {
+ $custom.hide();
+
glob.activeDialog = $dialog;
$confirmContent.text(message);
@@ -15,6 +20,35 @@ function confirm(message) {
return new Promise((res, rej) => { resolve = res; });
}
+function confirmDeleteNoteBoxWithNote(title) {
+ glob.activeDialog = $dialog;
+
+ $confirmContent.text(`Are you sure you want to remove the note "${title}" from relation map?`);
+
+ $custom.empty()
+ .append("
")
+ .append($("
").addClass("form-check")
+ .append($("")
+ .attr("id", DELETE_NOTE_BUTTON_ID)
+ .attr("type", "checkbox")
+ .addClass("form-check-input"))
+ .append($("