Custom menu problem
I have a customized menu on the assets page. Everything works fine until the user searches for an asset. Then the AEM updates the current menu with the menu defined in /libs/dam/gui/content/commons/sidepanels/search/items/searchpanel/result/header/items/selection . I have redefined that menu in /apps/dam/gui/content/commons/sidepanels/search/items/searchpanel/result/header/items/selection with the selections that were added to the menu. When the page loads, there is javascript that links the menu items with the script to be run when the item is clicked. The problem is that when the new menu replaces the previous one, the links between the script and items is lost. I'm looking for a way to either know when the new items are there to re inject the script or how to upload script with the updated menu that will run and link the menu items to script to be run.
Does anyone have experience doing this?
Thanks in advance.
