From a70443528c61a76c489b5e578ed0024bef3142ec Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 11 Jul 2022 12:18:14 +0200 Subject: [PATCH] fixes #1689 no more shuffle after group add --- admin/themes/default/js/group_list.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/admin/themes/default/js/group_list.js b/admin/themes/default/js/group_list.js index 3dc1cfccb..58be55639 100644 --- a/admin/themes/default/js/group_list.js +++ b/admin/themes/default/js/group_list.js @@ -93,12 +93,11 @@ jQuery(document).ready(function () { success: function (raw_data) { loadState.reverse(); data = jQuery.parseJSON(raw_data); - console.log(data); if (data.stat === "ok") { $(".addGroupFormLabelAndInput input").val(''); group = data.result.groups[0]; - groupBox = createGroup(group) - groupBox.prependTo(".groups") + groupBox = createGroup(group); + $("#addGroupForm").after(groupBox); setupGroupBox(groupBox); updateBadge(); } else {