From 8073d9c7cb2e8e187cbfb776b865ec9ba2623c25 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Thu, 31 Mar 2022 14:32:33 +0200 Subject: [PATCH] declare variable id in local scope, fixes #843 --- resources/assets/javascripts/lib/forum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/javascripts/lib/forum.js b/resources/assets/javascripts/lib/forum.js index 7626d2405a6..e0dd69e15c3 100644 --- a/resources/assets/javascripts/lib/forum.js +++ b/resources/assets/javascripts/lib/forum.js @@ -673,7 +673,7 @@ const Forum = { // jQuery('li[data-id=' + topic_id + '] a.tooltip2').hideAjaxNotification(); // remove all pasted entries, they are now elsewhere - for (id in STUDIP.Forum.clipboard) { + for (var id in STUDIP.Forum.clipboard) { jQuery('li[data-id=' + id + ']').remove(); } -- GitLab