Mercurial > kallithea
changeset 4824:11422edf4bea
repos: fix redirect after repo creation (and user/group add focus) (Issue #98)
ec39e73be935 introduced a regression in the cases where templates contained
(javascript) snippets outside defined areas. Before, they were included anyway.
After, they were not.
Fixing by moving the chunks I could find inside the main def.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 18 Feb 2015 23:48:47 +0100 |
parents | 2d2856fd1144 |
children | a0443f20a5ec |
files | kallithea/templates/admin/repos/repo_creating.html kallithea/templates/admin/user_groups/user_group_add.html kallithea/templates/admin/users/user_add.html |
diffstat | 3 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/admin/repos/repo_creating.html Mon Feb 09 14:42:35 2015 +0800 +++ b/kallithea/templates/admin/repos/repo_creating.html Wed Feb 18 23:48:47 2015 +0100 @@ -43,7 +43,6 @@ </div> </div> </div> -</%def> <script> (function worker() { @@ -67,3 +66,4 @@ }); })(); </script> +</%def>
--- a/kallithea/templates/admin/user_groups/user_group_add.html Mon Feb 09 14:42:35 2015 +0800 +++ b/kallithea/templates/admin/user_groups/user_group_add.html Wed Feb 18 23:48:47 2015 +0100 @@ -63,10 +63,10 @@ </div> ${h.end_form()} </div> -</%def> <script> $(document).ready(function(){ $('#users_group_name').focus(); }) </script> +</%def>
--- a/kallithea/templates/admin/users/user_add.html Mon Feb 09 14:42:35 2015 +0800 +++ b/kallithea/templates/admin/users/user_add.html Wed Feb 18 23:48:47 2015 +0100 @@ -102,9 +102,10 @@ </div> ${h.end_form()} </div> -</%def> + <script> $(document).ready(function(){ $('#username').focus(); }) </script> +</%def>