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); } }); });