From e93a0dbeae84d17a93ef203633bc2eddd1358aec Mon Sep 17 00:00:00 2001 From: Christian F Date: Tue, 16 Jan 2024 14:25:00 +0100 Subject: [PATCH] Added id to export button (#393) * added id to export button * moved content of export handler to own function --- public/js/pimcore/object/helpers/gridTabAbstract.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/pimcore/object/helpers/gridTabAbstract.js b/public/js/pimcore/object/helpers/gridTabAbstract.js index f443e0ae36..b30e99ea8d 100644 --- a/public/js/pimcore/object/helpers/gridTabAbstract.js +++ b/public/js/pimcore/object/helpers/gridTabAbstract.js @@ -313,13 +313,17 @@ pimcore.object.helpers.gridTabAbstract = Class.create({ text: t(exportType.text), iconCls: exportType.icon || "pimcore_icon_export", handler: function () { - pimcore.helpers.exportWarning(exportType, function (settings) { - this.exportPrepare(settings, exportType); - }.bind(this)); + this.startExport(exportType); }.bind(this), }) }.bind(this)); return buttons; + }, + + startExport: function (exportType) { + pimcore.helpers.exportWarning(exportType, function (settings) { + this.exportPrepare(settings, exportType); + }.bind(this)); } });