From fe6c2c2d8dc512664ff3a9c793913e47757a398a Mon Sep 17 00:00:00 2001 From: acirep Date: Sat, 19 Jul 2025 16:21:35 +0200 Subject: [PATCH] Fix #66 Add tag results at the end --- static/select-pkgresult.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/select-pkgresult.js b/static/select-pkgresult.js index 0333f13..2513ccb 100644 --- a/static/select-pkgresult.js +++ b/static/select-pkgresult.js @@ -11,6 +11,10 @@ $(document).ready(function() { ajax: { url: bt.basePath+'json/autocomplete/', dataType: 'json' + }, + insertTag: function(data, tag) { + // Insert the user-typed tag at the end instead of the beginning + data.push(tag); } }); });