aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-03-31 14:32:33 +0200
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-03-31 14:32:33 +0200
commit8073d9c7cb2e8e187cbfb776b865ec9ba2623c25 (patch)
treed50d36ec1f8b6415d0106e79f5d122f7da12e3a6
parentdcccfab09fd1b4bf1de50c8f3c014f672fa8b7c9 (diff)
declare variable id in local scope, fixes #843
-rw-r--r--resources/assets/javascripts/lib/forum.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/assets/javascripts/lib/forum.js b/resources/assets/javascripts/lib/forum.js
index 7626d24..e0dd69e 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();
}