Commit c0c474431932b22364b501fb697d2ddbb677a551
1 parent
6035730f
Exists in
colab
and in
4 other branches
Removed unused javascript on repositories form
Showing
1 changed file
with
0 additions
and
13 deletions
Show diff stats
app/views/repositories/_form.html.erb
... | ... | @@ -110,17 +110,4 @@ |
110 | 110 | |
111 | 111 | <script type="text/javascript"> |
112 | 112 | var _repository_branch = new Repository.Branch; |
113 | - | |
114 | - $(document).on('page:load ready', function() { | |
115 | - _repository_branch.toggle(); | |
116 | - | |
117 | - var checkbox = $("#no_project_checkbox"); | |
118 | - | |
119 | - function toggle() { | |
120 | - $("#repository_project_id").prop('disabled', checkbox.prop('checked')); | |
121 | - }; | |
122 | - | |
123 | - checkbox.on('click', toggle); | |
124 | - toggle(); | |
125 | - }); | |
126 | 113 | </script> | ... | ... |