From 48f12d4eaddf08282086199d94a306b47483521f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 10 Aug 2015 01:04:23 +0800 Subject: upgrade new issue to SUI v2 --- public/js/gogs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'public/js') diff --git a/public/js/gogs.js b/public/js/gogs.js index 1c6f3ade..9aa95203 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')} }); } }; -- cgit v1.2.3