diff --git a/kallithea/templates/pullrequests/pullrequest.html b/kallithea/templates/pullrequests/pullrequest.html --- a/kallithea/templates/pullrequests/pullrequest.html +++ b/kallithea/templates/pullrequests/pullrequest.html @@ -148,6 +148,8 @@ var pendingajax = undefined; var otherrepoChanged = function(){ + var $other_ref = $('#other_ref'); + $other_ref.prop('disabled', true); var repo_name = $('#other_repo').val(); if (pendingajax) { pendingajax.abort(); @@ -160,7 +162,6 @@ $('#other_repo_desc').html(data.description); // replace options of other_ref with the ones for the current other_repo - var $other_ref = $('#other_ref'); $other_ref.empty(); for(var i = 0; i < data.refs.length; i++) { @@ -186,6 +187,7 @@ dropdownAutoWidth: true }); + $other_ref.prop('disabled', false); loadPreview(); }); };