Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve Document Types.
  • Loading branch information
martineiber authored and aryaantony92 committed Mar 14, 2023
1 parent 266c5b7 commit 7588c33
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -228,8 +228,10 @@ pimcore.settings.document.doctypes = Class.create({
tooltip: t('delete'),
handler: function (grid, rowIndex) {
let data = grid.getStore().getAt(rowIndex);
pimcore.helpers.deleteConfirm(t('document_type'), data.data.name, function () {
grid.getStore().removeAt(rowIndex);
pimcore.helpers.deleteConfirm(t('document_type'),
Ext.util.Format.htmlEncode(data.data.name),
function () {
grid.getStore().removeAt(rowIndex);
}.bind(this));
}.bind(this)
}]
Expand Down

0 comments on commit 7588c33

Please sign in to comment.