summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-28 17:19:25 +0100
committerGitHub <noreply@github.com>2016-11-28 17:19:25 +0100
commitd2fab66d49b6f13b9afd4817f064d8531303142f (patch)
tree0d4e5a6ef3ca58b41a09d5cfbd3cf352277a1b14
parent708810c488193ed79bd7b9f55f67908aeee36186 (diff)
parent27cbaad96a7d070415e44d2e3dc0fef8d1d3932b (diff)
downloadnextcloud-server-d2fab66d49b6f13b9afd4817f064d8531303142f.tar.gz
nextcloud-server-d2fab66d49b6f13b9afd4817f064d8531303142f.zip
Merge pull request #2375 from Morlinest/patch-1
Mark all content in search field
-rw-r--r--core/search/js/search.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js
index 93b1961eea5..4dd29ef917f 100644
--- a/core/search/js/search.js
+++ b/core/search/js/search.js
@@ -352,6 +352,7 @@
!$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
) {
$searchBox.focus();
+ $searchBox.select();
event.preventDefault();
}
});