diff --git a/js/apps/system/aardvark/frontend/js/views/collectionsView.js b/js/apps/system/aardvark/frontend/js/views/collectionsView.js index e96e6c9bc1..78c3584ddc 100644 --- a/js/apps/system/aardvark/frontend/js/views/collectionsView.js +++ b/js/apps/system/aardvark/frontend/js/views/collectionsView.js @@ -46,10 +46,10 @@ $('#collectionsToggle').addClass('activated'); } + var length = searchOptions.searchPhrase.length; $('#searchInput').val(searchOptions.searchPhrase); - $('#searchInput').focus(); - var val = $('#searchInput').val(); - $('#searchInput').val(val); + $('#searchInput').focus(); + $('#searchInput')[0].setSelectionRange(length, length); arangoHelper.fixTooltips(".icon_arangodb, .arangoicon", "left");