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
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.
core/modules/edit/js/views/toolbar-view.js: line 224, col 29, Expected '!==' and instead saw '!='.
core/modules/edit/js/backbone.drupalform.js: line 96, col 26, Bad escaping.
core/modules/edit/js/backbone.drupalform.js: line 96, col 35, Bad escaping.
Comment | File | Size | Author |
---|---|---|---|
#12 | core-jshint-edit-1955292-12.patch | 707 bytes | nod_ |
#7 | edit.patch | 1.32 KB | droplet |
#3 | errors.txt | 6.17 KB | tmckeown |
#3 | jslint_fixes-1955292.patch | 9.3 KB | tmckeown |
#3 | drupal_8_js_files.txt | 3.33 KB | tmckeown |
Comments
Comment #1
nod_tag
Comment #2
tmckeown CreditAttribution: tmckeown commentedTaking this one as part of the Long Beach Drupal Ladders sprint tonight. To find all js files from the command line this command helped.
Comment #3
tmckeown CreditAttribution: tmckeown commentedAttached are the remaining error, the files checked, as well as a patch. I don't suggest we change modernizr and I wasn't not sure what the issue was with drupal.js
Comment #4
tmckeown CreditAttribution: tmckeown commentedComment #5
nod_Thanks for the patch!
To keep the sanity level as high as possible we're checking each module individually so the only files we want to change in this issue would be toolbar-view.js and backbone.drupalform.js, not collapsed.js and the rest, check out the table from this issue #1415788: Javascript winter clean-up All the files/modules are listed and issues are associated with each of them.
Comment #6
droplet CreditAttribution: droplet commentedthis is alert
Comment #7
droplet CreditAttribution: droplet commentedEDIT JS is broken, cannot do test :(
Comment #9
droplet CreditAttribution: droplet commented#7: edit.patch queued for re-testing.
Comment #10
nod_I'm making sure the refactor of Edit JS doesn't have JSHint issues.
Comment #11
nod_New JSHint config #1995996: Update JSHint configuration.
core/modules/edit/js/views/AppView.js: line 269, col 26, 'targetState' is defined but never used.
Comment #12
nod_Think that might be a bug, giving it to Wim.
I think patch does what it's supposed to be doing.
Comment #13
Wim Leers#12 looks correct. I'll review later.
Comment #14
Wim LeersConfirmed. This is a bug introduced by #1979784: Factor Create.js and VIE.js out of the Edit module. The consequence is that right now, if you click the "close" button if the field has been modified, and you click the "Save" button in the modal, it will still cause the contents to be discarded.
Thanks!
Comment #15
alexpottCommitted 895e29f and pushed to 8.x. Thanks!
Nice... jshint finding and helping to fix bugs!
Comment #16
Wim LeersIndeed :)
Comment #17.0
(not verified) CreditAttribution: commentedother errors