From 600588d6230c84057e57951ddeb298bc53f9feab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Col=C3=B3n?= Date: Tue, 25 Sep 2018 19:19:57 -0400 Subject: [ticket/15552] Call insert_single_user when appropriate PHPBB3-15552 --- phpBB/styles/prosilver/template/forum_fn.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 3f59709ac6..f0eb2da8c1 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -273,11 +273,9 @@ function insertUser(formId, value) { function insert_marked_users(formId, users) { 'use strict'; - for (var i = 0; i < users.length; i++) { - if (users[i].checked) { - insertUser(formId, users[i].value); - } - } + $(users).filter(':checked').each(function() { + insertUser(formId, this.value); + }); window.close(); } -- cgit v1.2.1