summaryrefslogtreecommitdiffstats
path: root/core/search
diff options
context:
space:
mode:
authorMorlinest <Morlinest@users.noreply.github.com>2016-11-28 15:06:02 +0100
committerGitHub <noreply@github.com>2016-11-28 15:06:02 +0100
commit27cbaad96a7d070415e44d2e3dc0fef8d1d3932b (patch)
tree00d0ee112971f658ce11314376161e478d04a9b8 /core/search
parent183bee9b67346c9669fc39983f0f98a03771fbda (diff)
downloadnextcloud-server-27cbaad96a7d070415e44d2e3dc0fef8d1d3932b.tar.gz
nextcloud-server-27cbaad96a7d070415e44d2e3dc0fef8d1d3932b.zip
Mark all content in search field
To resolve issue #2310
Diffstat (limited to 'core/search')
-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();
}
});