Changeset - 11422edf4bea
[Not reviewed]
default
0 3 0
Mads Kiilerich - 11 years ago 2015-02-18 23:48:47
madski@unity3d.com
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.
3 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/admin/repos/repo_creating.html
Show inline comments
 
@@ -43,7 +43,6 @@
 
        </div>
 
    </div>
 
</div>
 
</%def>
 

	
 
<script>
 
(function worker() {
 
@@ -67,3 +66,4 @@
 
  });
 
})();
 
</script>
 
</%def>
kallithea/templates/admin/user_groups/user_group_add.html
Show inline comments
 
@@ -63,10 +63,10 @@
 
    </div>
 
    ${h.end_form()}
 
</div>
 
</%def>
 

	
 
<script>
 
    $(document).ready(function(){
 
        $('#users_group_name').focus();
 
    })
 
</script>
 
</%def>
kallithea/templates/admin/users/user_add.html
Show inline comments
 
@@ -102,9 +102,10 @@
 
    </div>
 
    ${h.end_form()}
 
</div>
 
</%def>
 

	
 
<script>
 
    $(document).ready(function(){
 
        $('#username').focus();
 
    })
 
</script>
 
</%def>
0 comments (0 inline, 0 general)