From c8e416fe03bced2bb3103707413798ec75b5e6e0 Mon Sep 17 00:00:00 2001 From: doubaniux Date: Sun, 29 Aug 2021 20:43:08 +0200 Subject: [PATCH] disable confirm delete button after click --- common/static/js/detail.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/static/js/detail.js b/common/static/js/detail.js index a4548c3a..75aecbcd 100644 --- a/common/static/js/detail.js +++ b/common/static/js/detail.js @@ -120,5 +120,11 @@ $(document).ready( function() { $(this).parent().siblings(".entity-desc__content").removeClass('entity-desc__content--folded'); $(this).parent(".entity-desc__unfold-button").remove(); }); + + // disable delete mark button after click + const confirmDeleteMarkButton = $('.confirm-modal__confirm-button > input'); + confirmDeleteMarkButton.click(function() { + confirmDeleteMarkButton.prop("disabled", true); + }); }); \ No newline at end of file