summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-10 01:04:23 +0800
committerUnknwon <u@gogs.io>2015-08-10 01:04:23 +0800
commit48f12d4eaddf08282086199d94a306b47483521f (patch)
treed0bbe611ace41557262acd7925fe157d1ad2820c /public/js
parenta79586cc545594d8876438e2497c9408945748b2 (diff)
downloadgitea-48f12d4eaddf08282086199d94a306b47483521f.tar.gz
gitea-48f12d4eaddf08282086199d94a306b47483521f.zip
upgrade new issue to SUI v2
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js6
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')}
});
}
};