From ff1acf1a60297a2f6c5a5f8e7bccf21b7d9e0f96 Mon Sep 17 00:00:00 2001 From: Dominik Pfaffenbauer Date: Thu, 10 Jan 2019 13:51:41 +0100 Subject: [PATCH] [CoreBundle] add js event for menu-ready (to append more menu entries) --- .../CoreBundle/Resources/public/pimcore/js/resource.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/resource.js b/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/resource.js index 0ca73d2fb0..1ddcede9c4 100644 --- a/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/resource.js +++ b/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/resource.js @@ -413,6 +413,8 @@ coreshop.core.resource = Class.create(coreshop.resource, { Ext.get('pimcore_menu_coreshop').on('mousedown', function (e, el) { toolbar.showSubMenu.call(this._menu, e, el); }.bind(this)); + + coreshop.broker.fireEvent('coreShop.menu.initialized', this, this._menu); } Ext.get('coreshop_status').set( @@ -424,10 +426,6 @@ coreshop.core.resource = Class.create(coreshop.resource, { pimcore.helpers.initMenuTooltips(); - $(document).trigger('coreShopReady'); - - //coreshop.plugin.broker.fireEvent('coreshopReady', this); - //Add Report Definition pimcore.report.broker.addGroup('coreshop', 'coreshop_reports', 'coreshop_icon_report'); //pimcore.report.broker.addGroup('coreshop_monitoring', 'coreshop_monitoring', 'coreshop_icon_monitoring');