Closed (fixed)
Project:
Taxonomy Term Reference Tree Widget
Version:
7.x-1.6
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2011 at 06:02 UTC
Updated:
11 Apr 2013 at 17:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
tim.plunkettThe JS code should be rewritten to use Drupal.behaviors: http://drupal.org/node/171213#behaviors
Comment #2
tim.plunkettThis is completely untested, but it might actually make a difference.
Comment #3
aron novakBut to implement it properly, the context must not be ignored.
Comment #4
bartk commentedFixed in 7.x-1.x-dev
Comment #5
natukI am sorry for reopening this, but I think the problem still exists in 7.x-1.9. When a second row is added in the field collection, expanding a branch in any row does not work properly. The branch is expanded momentarily and then it collapses immediately.
Comment #6
bblake commentedI've tracked this issue down as I was having a similar problem and submitted a patch. The basic problem is that when there's an AJAX element on a drupal form, when the ajax submit and form re-building happens, it calls detachbehaviors to detach all behaviors associated with the form elements for the whole form, then re-attaches the elements for the whole form. taxonomy_term_tree didn't have a detach: clause and thus the behavior was never getting detached and would get added every time you performed an AJAX action.
Comment #7
bblake commentedChanged to needs review
Comment #8
dave reidI think #6 is actually resolved by using .once() in #1509356: strange module behaviors when uploading image. Restoring original status.