Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up of #1664940: [Policy, patch] Decide on JSHint configuration and part of #1415788: Javascript winter clean-up
Run jshint on the files with the configuration from the parent issue or use jshint.com with the following options:
/*jshint forin:true, noarg:true, eqeqeq:true, undef:true, curly:true, browser:true, expr:true, latedef:true, newcap:true, trailing:true */
/*global Drupal, jQuery */
Fix any warnings or errors the tool finds.
Check manually that the fixes did not break any functionalities
Create patch and upload for the testbot.
Files: autocomplete.js
Comment | File | Size | Author |
---|---|---|---|
#7 | core-jshint-autocomplete-1684792-7.patch | 919 bytes | nod_ |
#2 | autocomplete-jshint.patch | 1.34 KB | droplet |
Comments
Comment #1
nod_Comment #2
droplet CreditAttribution: droplet commentedComment #3
nod_Waiting on #675446: Use jQuery UI Autocomplete to get in to avoid reroll.
Comment #4
nicothezulu CreditAttribution: nicothezulu commentedWhen u have input fields with the same id for multiple autocomplete fields over a panel, or page, or smthg autocomplete fails.
You need to add the following lines in autocomplete.js:
I know its a separate issue, than this post...
Comment #5
nod_If you know it, please create a new issue, this has nothing to do with JSHint. Thanks.
Restoring tags.
Comment #6
nod_Let's get rid of that, the other issue isn't moving very much.
Comment #7
nod_event delegation ftw.
Comment #9
nod_#7: core-jshint-autocomplete-1684792-7.patch queued for re-testing.
Comment #11
Wim Leers#7: core-jshint-autocomplete-1684792-7.patch queued for re-testing.
Comment #12
nod_Just re-tested. It still works and still applies.
Comment #13
alexpottOne more file to go and jshint can go into my pre-commit hook :)
Committed 9f69e00 and pushed to 8.x. Thanks!