Closed (duplicate)
Project:
Taxonomy Term Reference Tree Widget
Version:
7.x-1.9
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2013 at 08:28 UTC
Updated:
2 May 2013 at 17:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
troybthompson commentedI haven't seen this myself, but users of the site have been reporting something similar. I've used the same browsers as them and can't replicate it.
Comment #2
guerno commentedThe browser does not matter. I tested this in all major browsers. Firefox, Chrome, Explorer, Safari. All had the same issue.
Comment #3
guerno commentedAn update on this: I think it's a bug in drupal itself. I did some adjustments in the includes/ajax.inc. Applied some patches to correct other ajax errors that views was outputting and now the taxonomy tree select also seems to work fine by accident :D.
The stupid thing of me: I just tried some patches (3 or so) and can't remember which ones. But it where patches on the includes/ajax.inc to correct error:500's in views.
My drupal version is 7.21
Comment #4
rob230 commentedI'm having this problem as well. It is difficult to track the cause because it works fine at first. It seems like if I leave the page open in my browser for a long time, eventually it'll happen, but I don't have the patience to find a reproducible cause. At first it'll be fine, then it might open and close a couple of times, and eventually it'll be opening and closing a dozen times.
Comment #5
FaberfoX commentedIn my case, after uploading an image to a field, no matter if it's before or after the tree, the expand/collapse buttons behave as if clicked twice.
Removing the image or adding a new one makes it behave as if clicked 3 times, and so on.
This happens using either throbber or progress bar for the image upload.
My knowledge is limited but something similar happened to me here and I solved it in a dirty way (creating a page variable and checking for it's existence to stop attaching the click function).
If someone can confirm this finding, I'll try to look into the code to create a patch, I guess if my assumption is correct, it should be an easy fix to those who know a bit more than me.
Comment #6
koechsle commentedThe problem is the .attach() function is called again when there is an Ajax event - this attaches the jquery click() handler to the expand/collapse buttons AGAIN. So after that, the expand/collapse click handler is called twice.
I am pretty sure this is also the cause for this Taxonomy Manager issue :
Incompatibility with Term Reference Tree Module
Here Managing JavaScript in Drupal 7 I read that you should use jquery once to circumvent this problem.
I have made a simple fix by adding once() as a filter before the click():
term_reference_tree.js line 5:
$('.term-reference-tree-button', context).once().click(function() { // once() used to avoid the click handler being attached multiple times (otherwise attach is called for each AJAX refresh)This is whats in the patch.
Comment #7
dave reidThis was resolved using #1509356: strange module behaviors when uploading image
Comment #8
giufog commentedanche a me lo stesso problema, dipendeva da hierarchical select, disinstallato e ora tutto ok
Comment #9
guerno commented#6 works fine, thanks!