]> source.dussan.org Git - nextcloud-server.git/commitdiff
Mark all content in search field 2375/head
authorMorlinest <Morlinest@users.noreply.github.com>
Mon, 28 Nov 2016 14:06:02 +0000 (15:06 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2016 14:06:02 +0000 (15:06 +0100)
To resolve issue #2310

core/search/js/search.js

index 93b1961eea531d86abc0bb911e7a4a2ea6706c8f..4dd29ef917f05300a5c79d141fd3a1c1f3ed570d 100644 (file)
                                        !$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default)
                                ) {
                                        $searchBox.focus();
+                                       $searchBox.select();
                                        event.preventDefault();
                                }
                        });