From a4212901b1dc598ee7aa6cca11b4d502b45b09bc Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 26 Sep 2018 16:21:49 +1200 Subject: [PATCH] Select input box on machine/distro/class pages If there are no search results, focus the search input field and select any text in it so that the user can just start typing a keyword immediately. Signed-off-by: Paul Eggleton --- templates/layerindex/classes.html | 11 +++++++++++ templates/layerindex/distros.html | 11 +++++++++++ templates/layerindex/machines.html | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/templates/layerindex/classes.html b/templates/layerindex/classes.html index 333f6ea..c513d71 100644 --- a/templates/layerindex/classes.html +++ b/templates/layerindex/classes.html @@ -75,3 +75,14 @@ {% endautoescape %} {% endblock %} + + +{% block scripts %} + +{% endblock %} diff --git a/templates/layerindex/distros.html b/templates/layerindex/distros.html index ed7460d..880c07a 100644 --- a/templates/layerindex/distros.html +++ b/templates/layerindex/distros.html @@ -78,3 +78,14 @@ {% endautoescape %} {% endblock %} + + +{% block scripts %} + +{% endblock %} diff --git a/templates/layerindex/machines.html b/templates/layerindex/machines.html index 3ab82d3..5eee092 100644 --- a/templates/layerindex/machines.html +++ b/templates/layerindex/machines.html @@ -77,3 +77,14 @@ {% endautoescape %} {% endblock %} + + +{% block scripts %} + +{% endblock %}