# HG changeset patch # User Mads Kiilerich # Date 1412288436 -7200 # Node ID cb360bf4086368949a90cc01740bfef3a3e4db21 # Parent dbd2f289158517640adab34f019c821f9811e5aa pull requests: when creating, disable other_ref on other_repo change until new data has been loaded diff -r dbd2f2891585 -r cb360bf40863 kallithea/templates/pullrequests/pullrequest.html --- a/kallithea/templates/pullrequests/pullrequest.html Fri Oct 03 00:20:36 2014 +0200 +++ b/kallithea/templates/pullrequests/pullrequest.html Fri Oct 03 00:20:36 2014 +0200 @@ -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(); }); };