# HG changeset patch # User Mads Kiilerich # Date 2013-02-04 15:54:35 # Node ID c5dde6b5e976f0e1014a414d089f200ce0835664 # Parent c9b85375776de1e8d26220d2153885d8d87532a1 pull request: only bind action to other_repo change once diff --git a/rhodecode/templates/pullrequests/pullrequest.html b/rhodecode/templates/pullrequests/pullrequest.html --- a/rhodecode/templates/pullrequests/pullrequest.html +++ b/rhodecode/templates/pullrequests/pullrequest.html @@ -169,12 +169,6 @@ url = url.replace('__'+k+'__',rev_data[k]); } - YUE.on('other_repo', 'change', function(e){ - var repo_name = e.currentTarget.value; - // replace the of changed repo + YUD.get('other_ref').innerHTML = other_repos_info[repo_name]['revs']; + }); + YUE.on('refresh','click',function(e){ loadPreview() })