diff options
author | Unknwon <u@gogs.io> | 2015-08-08 23:12:23 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-08 23:12:23 +0800 |
commit | 43a87b0caf50abe6d6b19adf10dd9f082c58ad61 (patch) | |
tree | 2fde3eb7f0e9edc6c5cdbd6fef13759705f3f345 /public/js | |
parent | dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5 (diff) | |
download | gitea-43a87b0caf50abe6d6b19adf10dd9f082c58ad61.tar.gz gitea-43a87b0caf50abe6d6b19adf10dd9f082c58ad61.zip |
auto-redirect when finish filter branch
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 5 |
1 files changed, 2 insertions, 3 deletions
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'); } }); } |