From 3bda3a1c0df29e5866221e095e64ab272bb4e353 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Tue, 9 Sep 2014 20:36:01 +0200 Subject: [PATCH] fixed cursor positioning in collections search --- .../system/aardvark/frontend/js/views/collectionsView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");