diff --git a/public/js/gogs.js b/public/js/gogs.js index 2db397f062..8b1d07b26a 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -97,10 +97,9 @@ function initRepository() { // Pull request if ($('.repository.compare.pull').length > 0) { $('.choose.branch .dropdown').dropdown({ - action: 'hide', fullTextSearch: true, - onNoResults: function () { - $('.choose.branch .dropdown .active').addClass('selected'); + onChange: function (text, value, $choice) { + window.location.href = $choice.data('url'); } }); } diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl index e6ba81d357..d07e4d2b26 100644 --- a/templates/repo/pulls/compare.tmpl +++ b/templates/repo/pulls/compare.tmpl @@ -21,7 +21,7 @@