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