1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Refactor: Remove jQuery usage in inlineAutoComplete function (#41096).

git-svn-id: https://svn.redmine.org/redmine/trunk@23016 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-09-05 06:06:58 +00:00
parent b7120cfe3a
commit 622bfcde9d

View File

@ -1176,8 +1176,8 @@ function inlineAutoComplete(element) {
{
trigger: '#',
values: function (text, cb) {
if (event.target.type === 'text' && $(element).attr('autocomplete') != 'off') {
$(element).attr('autocomplete', 'off');
if (event.target.type === 'text' && element.getAttribute('autocomplete') != 'off') {
element.setAttribute('autocomplete', 'off');
}
// When triggered with text starting with "##", like "##a", the search term will become "#a",
// causing the SQL query to fail in finding issues with "a" in the subject.