diff options
author | Unknwon <u@gogs.io> | 2015-08-08 22:43:14 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-08 22:43:14 +0800 |
commit | dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5 (patch) | |
tree | 773b28a72cee24e4a02f3d162de8a37a8f912f59 /public/js | |
parent | d015d951bd6959f9585d8a83acfe7bba07b7eaad (diff) |
WIP: create PR - choose branch
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 7e57a5e1..2db397f0 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -93,6 +93,17 @@ function initRepository() { $('#add-deploy-key-panel').show(); }); } + + // Pull request + if ($('.repository.compare.pull').length > 0) { + $('.choose.branch .dropdown').dropdown({ + action: 'hide', + fullTextSearch: true, + onNoResults: function () { + $('.choose.branch .dropdown .active').addClass('selected'); + } + }); + } }; $(document).ready(function () { |