]> source.dussan.org Git - redmine.git/commitdiff
Refactor: Remove jQuery usage in inlineAutoComplete function (#41096).
authorGo MAEDA <maeda@farend.jp>
Thu, 5 Sep 2024 06:06:58 +0000 (06:06 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 5 Sep 2024 06:06:58 +0000 (06:06 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23016 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/assets/javascripts/application.js

index a5f63529941cf3fbd3cb0a67873550b89b511626..96a9986bbcc36d70ed509b6bed3312984a6a3d62 100644 (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.