mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-15 01:18:30 +00:00
Focus the "name" input in the "Add Project" modal.
This commit is contained in:
parent
00810ff123
commit
eb7f51f6f5
4 changed files with 9 additions and 2 deletions
5
static/js/add_project_modal.js
Normal file
5
static/js/add_project_modal.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
$(function () {
|
||||||
|
$("#add-project-modal").on('shown.bs.modal', function () {
|
||||||
|
$("#add-project-name").focus();
|
||||||
|
})
|
||||||
|
});
|
|
@ -12,10 +12,11 @@
|
||||||
<p>Name your project</p>
|
<p>Name your project</p>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
|
id="add-project-name"
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
class="form-control input-lg"
|
class="form-control input-lg"
|
||||||
autocomplete="off">
|
autocomplete="off" />
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
||||||
|
|
|
@ -205,6 +205,7 @@
|
||||||
{% compress js %}
|
{% compress js %}
|
||||||
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
|
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
|
||||||
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
||||||
|
<script src="{% static 'js/add_project_modal.js' %}"></script>
|
||||||
<script src="{% static 'js/profile.js' %}"></script>
|
<script src="{% static 'js/profile.js' %}"></script>
|
||||||
{% endcompress %}
|
{% endcompress %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -58,6 +58,6 @@
|
||||||
{% compress js %}
|
{% compress js %}
|
||||||
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
|
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
|
||||||
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
||||||
<script src="{% static 'js/project.js' %}"></script>
|
<script src="{% static 'js/add_project_modal.js' %}"></script>
|
||||||
{% endcompress %}
|
{% endcompress %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue