Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
system.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2019 at 12:24 UTC
Updated:
15 Sep 2023 at 05:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
sibustephen commentedComment #4
sibustephen commentedAttaching patch for above issue.
Added a `tabledrag` function, which can be reused in generic.
Comment #6
komalk commentedComment #8
bnjmnmAddressed multiple issues with the patch.
= The functions were not theme functions,
- The
headervariable was a string when the code below it was expecting a jQuery object,- Did not pass JS code standards
Comment #9
bnjmnmWas wrong about "The functions were not theme functions" in #8, they were extending Drupal.theme. Going to see if it's preferable to continue that pattern or if it's better for new theme functions to not use jQuery when possible.
Comment #10
lauriiiComment #11
nod_That should be in the $.extends above like the other theme functions.
Comment #12
ravi.shankar commentedHere I have tried to address comment #11, please review.
Comment #13
ravi.shankar commentedLooks like @sibustephen is not working anymore on this issue.
Comment #14
nod_The file that needs to be changed is the .es6.js file, see: https://www.drupal.org/docs/frontend-developer-tools-for-drupal-core#s-j...
No need to add a new, $.extends, you can use the one that's already there a few lines above.
Comment #15
bnjmnmAddresses #11. Interdiffs from #8 as the change is more apparent than were it diffed from #12
Comment #16
lauriiiComment #17
bnjmnmAdded CR https://www.drupal.org/node/3161073
Comment #18
lauriiiComment #19
bnjmnmRerolled
Comment #20
lauriiiIt seems like the reroll is not 100% correct
Comment #21
komalk commentedWorked on #20.
Comment #22
nod_Looks good to me, Still works.
The linebreak is inside the html tag between 2 attributes, so there is no visual change because of it.
rename of the $handle var follow conventions and is done locally so no impact on the rest of the code.
Comment #24
lauriiiCommitted 4790a87 and pushed to 9.1.x. Thanks!
Comment #26
quietone commentedpublished the change record