summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-21 07:52:16 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-21 07:52:16 +0000
commitf5bbb0317ac874a0184c93f039146caf4ddb7f7c (patch)
tree5106451b4274b1933a56f3c11b1c524efaf393a8 /public
parent7df0230d673e8075aafad51f0ac7913fcc90d996 (diff)
downloadredmine-f5bbb0317ac874a0184c93f039146caf4ddb7f7c.tar.gz
redmine-f5bbb0317ac874a0184c93f039146caf4ddb7f7c.zip
Auto-complete issues #id in the search form (#32052).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 0868f971a..e125e68b4 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -1036,6 +1036,9 @@ function inlineAutoComplete(element) {
const tribute = new Tribute({
trigger: '#',
values: function (text, cb) {
+ if (event.target.type === 'text' && $(element).attr('autocomplete') != 'off') {
+ $(element).attr('autocomplete', 'off');
+ }
remoteSearch(issuesUrl + text, function (issues) {
return cb(issues);
});