Skip to content

Commit

Permalink
Added id to export button (#393)
Browse files Browse the repository at this point in the history
* added id to export button

* moved content of export handler to own function
  • Loading branch information
Corepex authored Jan 16, 2024
1 parent 9a3e673 commit e93a0db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public/js/pimcore/object/helpers/gridTabAbstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});

0 comments on commit e93a0db

Please sign in to comment.