view kallithea/templates/admin/repos/repo_edit_fork.html @ 4516:b3f12c354e87

javascript: remove nice trailing comma to please IE8 (Issue #39)
author Mads Kiilerich <madski@unity3d.com>
date Wed, 24 Sep 2014 14:24:40 +0200
parents d1addaf7a91e
children dacdea9fda2a
line wrap: on
line source

${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
   <div class="fields">
       ${h.select('id_fork_of','',c.repos_list,class_="medium")}
       ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
   </div>
       <div class="field" style="border:none;color:#888">
       <ul>
            <li>${_('''Manually set this repository as a fork of another from the list''')}</li>
       </ul>
       </div>
</div>
${h.end_form()}

<script>
    $(document).ready(function(){
        $("#id_fork_of").select2({
            'dropdownAutoWidth': true
        });
    })
</script>