diff options
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 1c6f3ade0f..9aa95203b1 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -104,11 +104,13 @@ function initRepository() { // Pull request if ($('.repository.compare.pull').length > 0) { - $('.choose.branch .dropdown').dropdown({ + var $branch_dropdown = $('.choose.branch .dropdown') + $branch_dropdown.dropdown({ fullTextSearch: true, onChange: function (text, value, $choice) { window.location.href = $choice.data('url'); - } + }, + message: {noResults: $branch_dropdown.data('no-results')} }); } }; |