From 43a87b0caf50abe6d6b19adf10dd9f082c58ad61 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 8 Aug 2015 23:12:23 +0800 Subject: auto-redirect when finish filter branch --- public/js/gogs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'public') 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'); } }); } -- cgit v1.2.3