contao/test — Issue #2504: Fire event when toggling structure
Author: aschempp
Created: 2011-11-29 09:47:42+00:00
State: open
Labels: backend, Feature

AjaxRequest.toggleStructure currently reloads the ContextMenu class using a hard-coded function call. It would be better to trigger an event, as other JS classes can then also update. I suggest to replace ContextMenu.initialize(); with window.fireEvent('structure'); and subscribe the ContextMenu to this event.

[Download the attachments](http://www.contao.org/tl_files/tickets/2504.zip "Download the attachments of this ticket")

--- _Originally created on September 6th, 2010, at 03:23pm (ID 2504)_