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.
Blarg. Likely a problem that would have to be fixed with http://plugins.jquery.com/project/issues/treeTable
Comment | File | Size | Author |
---|---|---|---|
#8 | 1062492-treetable-keep-events-in-same-table.patch | 670 bytes | Dave Reid |
#7 | 1062492-treetable-keep-events-in-same-table.patch | 730 bytes | Dave Reid |
#6 | 1062492-treetable-keep-events-in-same-table.patch | 705 bytes | Dave Reid |
#1 | allow_multiple_tables.patch | 2.3 KB | Berdir |
Comments
Comment #1
BerdirHere is a patch that fixes it in token.module by adding a prefix to the used id's.
The prefix is only added if there is more than a single table, this could easily be changed add one by default.
Patch is quite simple I think :)
Comment #2
fagohm, why not use classes instead of ids if its not unique? Or, drupal_html_id() ?
Comment #3
BerdirCould also use drupal_html_id(), the problem is that it is a mix of an id and classes. First, we add an id, which needs to be unique and then we have a number of classes (all rows that have the previous with the id as the parent) which need to reference to that id.
But yeah, it might be possible to use drupal_html_id() once then then re-used what has been returned.
Comment #4
Dave ReidIssue filed upstream with the library at http://plugins.jquery.com/content/cannot-have-multiple-tree-tables-same-...
Comment #5
moonray CreditAttribution: moonray commentedSubscribe.
Comment #6
Dave ReidUsing drupal_html_id will not allow us to cache the token tree's output. And modifying the library to use classes rather than IDs is a bigger step then it looks. Please try the following patch which changes the behavior of the childrenOf and parentOf functions to search only the 'current' treeTable.
Comment #7
Dave ReidComment #8
Dave ReidEven better which uses .siblings().
Comment #9
Dave ReidCommitted #8 to 7.x-1.x and 6.x-1.x.
http://drupalcode.org/project/token.git/commit/d3d91dd
http://drupalcode.org/project/token.git/commit/f530ccf
Comment #11
clemens.tolboomThis is committed to https://github.com/ludo/jquery-treetable/commit/769e1bd7a181f88fa0cdc153...
See also #922022: The token tree UI is not accessible to keyboard only users