Browse Source
Focus the "name" input in the "Add Project" modal.
pull/340/head
Pēteris Caune
5 years ago
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
4 changed files with
9 additions and
2 deletions
-
static/js/add_project_modal.js
-
templates/accounts/add_project_modal.html
-
templates/accounts/profile.html
-
templates/front/projects.html
|
|
@ -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> |
|
|
|
|
|
|
|
<input |
|
|
|
id="add-project-name" |
|
|
|
type="text" |
|
|
|
name="name" |
|
|
|
class="form-control input-lg" |
|
|
|
autocomplete="off"> |
|
|
|
autocomplete="off" /> |
|
|
|
|
|
|
|
<p> </p> |
|
|
|
|
|
|
|
|
|
@ -205,6 +205,7 @@ |
|
|
|
{% compress js %} |
|
|
|
<script src="{% static 'js/jquery-2.1.4.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> |
|
|
|
{% endcompress %} |
|
|
|
{% endblock %} |
|
|
@ -58,6 +58,6 @@ |
|
|
|
{% compress js %} |
|
|
|
<script src="{% static 'js/jquery-2.1.4.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 %} |
|
|
|
{% endblock %} |