From d778ff82054e17e6f323e820881a80317337cfa5 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 13 May 2023 15:42:36 +0200 Subject: [PATCH] trying to fi delete --- lib/js/nb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/js/nb.js b/lib/js/nb.js index b88307bf..73fb8cdb 100644 --- a/lib/js/nb.js +++ b/lib/js/nb.js @@ -637,12 +637,13 @@ jQuery.fn.href2delete = function(minus_one,minus_one_re) { $(this).click(function(){ $(this).addClass('loading'); - $(this).parent().parent().remove(); + // NB 13.05.23 $(this).parent().parent().remove(); $.ajax({ url: href, type: 'DELETE', success: function(result) { if (minus_one) $(minus_one).numAdd(-1,minus_one_re); + $(this).parent().parent().remove(); $(this).removeClass('loading'); } }); -- 2.47.3