Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 17:03 UTC
Updated:
16 Nov 2011 at 18:22 UTC
Jump to comment: Most recent file
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 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