Closed (fixed)
Project:
Bamboo
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 May 2014 at 16:14 UTC
Updated:
24 May 2014 at 15:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
willowdigit commentedI have just tried to reproduce the error on a clean install of Drupal 7.27. with bamboo installed, and I cannot. The problem is obviously somewhere else.
Comment #2
danny englanderI'd be curious to know if you checked Chrome console for js errors on the instance where you were getting the error. I'm thinking we'd need to wrap the menu call with a jQuery.once function to protect it from ajax messing with it. That usually solves a bag of hurt. At any rate, I won't have a chance to test this for another week or so, I'm pretty heads down with work atm.
Comment #3
willowdigit commentedPlease disregard #1. I am able to reproduce the error on a clean install of Drupal with views using a variety of browsers.
What I have also noticed now is that the menu does not work when I page away from page 1, but when I page back to page 1 it works again.
It seems that on initial load of page 1, the menu click event fires once for every mouse click. When I go to page two, the click event fires twice (opening and closing the menu in one go). Then, back on page one, the menu opens again as the click event fires 3 times (open, close, open), and with each pager navigation 1 click is added to the process.
Comment #4
willowdigit commentedAfter a bit of Googling I found the solution is to use the once() function as highrockmedia in #2 rightly suggests.
Comment #5
willowdigit commentedComment #6
danny englanderThanks for the patch, tested and fixes the issue. Pushed to dev at http://drupalcode.org/project/bamboo.git/commit/cbf516f I've attributed your authorship to the commit.