Skip to content
Snippets Groups Projects
Commit 00aa1b73 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

initially select name input for account and category too

parent c62e2087
No related branches found
No related tags found
1 merge request!229Feature/index page
Pipeline #2656 passed
$(document).ready(function() $(document).ready(function()
{ {
if($("#modalConfirmDelete").length) if($('#modalConfirmDelete').length)
{ {
$('#modalConfirmDelete').modal('open'); $('#modalConfirmDelete').modal('open');
} }
if($("#modalAccountNotDeletable").length) if($('#modalAccountNotDeletable').length)
{ {
$('#modalAccountNotDeletable').modal('open'); $('#modalAccountNotDeletable').modal('open');
} }
if($('#account-name').length)
{
document.getElementById('account-name').focus();
}
}); });
\ No newline at end of file
...@@ -2,6 +2,11 @@ $(document).ready(function() ...@@ -2,6 +2,11 @@ $(document).ready(function()
{ {
$('#modalConfirmDelete').modal('open'); $('#modalConfirmDelete').modal('open');
if($('#category-name').length)
{
document.getElementById('category-name').focus();
}
$('.category-color').click(function() $('.category-color').click(function()
{ {
removeActive(); removeActive();
......
...@@ -66,5 +66,6 @@ ...@@ -66,5 +66,6 @@
<!-- Scripts--> <!-- Scripts-->
<#import "../helpers/scripts.ftl" as scripts> <#import "../helpers/scripts.ftl" as scripts>
<@scripts.scripts/> <@scripts.scripts/>
<script src="<@s.url '/js/accounts.js'/>"></script>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment