Commit 1708d1ea1639aeb70073c1a291374616a75efe83

Authored by Rafael Manzo
Committed by Heitor
1 parent cd97bfb3

Removed already refactored code from repository form

Showing 1 changed file with 0 additions and 16 deletions   Show diff stats
app/views/repositories/_form.html.erb
... ... @@ -109,22 +109,6 @@
109 109 <%= link_to t('back'), project_path(@project_id), class: 'btn btn-default' %>
110 110 </div>
111 111  
112   -
113   -<script>
114   - function show_branches () {
115   - var scm_type_field = document.getElementById("repository_scm_type");
116   - var index = scm_type_field.selectedIndex;
117   - var option = scm_type_field.options[index];
118   -
119   - if(option.value != "SVN" ) {
120   - $("#branches").show();
121   - fetch_branches (document.getElementById("repository_address"));
122   - }
123   - else
124   - $("#branches").hide();
125   - }
126   -</script>
127   -
128 112 <script>
129 113 $(document).on('page:load ready', function() {
130 114 Repository.Branch.toggle();
... ...