Show More
@@ -148,6 +148,8 b'' | |||
|
148 | 148 | |
|
149 | 149 | var pendingajax = undefined; |
|
150 | 150 | var otherrepoChanged = function(){ |
|
151 | var $other_ref = $('#other_ref'); | |
|
152 | $other_ref.prop('disabled', true); | |
|
151 | 153 | var repo_name = $('#other_repo').val(); |
|
152 | 154 | if (pendingajax) { |
|
153 | 155 | pendingajax.abort(); |
@@ -160,7 +162,6 b'' | |||
|
160 | 162 | $('#other_repo_desc').html(data.description); |
|
161 | 163 | |
|
162 | 164 | // replace options of other_ref with the ones for the current other_repo |
|
163 | var $other_ref = $('#other_ref'); | |
|
164 | 165 | $other_ref.empty(); |
|
165 | 166 | for(var i = 0; i < data.refs.length; i++) |
|
166 | 167 | { |
@@ -186,6 +187,7 b'' | |||
|
186 | 187 | dropdownAutoWidth: true |
|
187 | 188 | }); |
|
188 | 189 | |
|
190 | $other_ref.prop('disabled', false); | |
|
189 | 191 | loadPreview(); |
|
190 | 192 | }); |
|
191 | 193 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now