[haiku-bugs] Re: [Haiku] #6757: Trac query: Component without submenu
- From: "brecht" <trac@xxxxxxxxxxxx>
- Date: Fri, 12 Nov 2010 01:08:42 -0000
#6757: Trac query: Component without submenu
---------------------------+---------------------------
Reporter: humdinger | Owner: nielx
Type: bug | Status: in-progress
Priority: normal | Milestone:
Component: Website/Trac | Version:
Resolution: | Keywords:
Blocked By: | Has a Patch: 0
Platform: All | Blocking:
---------------------------+---------------------------
Comment (by brecht):
I was also experiencing this problem while updating the HaikuPorts portlog
plugin for Trac 0.13. It took me a very long time to find out what was
wrong, but here it is.
The change in Trac 0.12.1 that causes this is that initializeFilters() is
now called from within a jQuery(document).ready() as opposed to directly
from the body (so, before the document is "ready"). As the componentselect
script is referenced first in the HTML file,
jQuery(document).ready(initialiseComponents) in that script is called
before initializeFilters(). initializeFilters() and initialiseComponents()
both set up handlers for the same event. The order in which the these
handlers are called is the same as the order in which they have been set
up, so componentselect's handler is called before the new filter has been
added to the document!
In short, to fix this, you need to move the reference to
componentselect.js to the end of the list of scripts in the HTML head
(right before </head>).
--
Ticket URL: <http://dev.haiku-os.org/ticket/6757#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts: