Et2Dialog: Fix template's DOMContainer ID still had .xet in it

This commit is contained in:
nathan 2022-03-23 10:53:00 -06:00
parent 85e247d4d6
commit 2c92ddfe92

View File

@ -522,7 +522,7 @@ export class Et2Dialog extends Et2Widget(ScopedElementsMixin(SlotMixin(LionDialo
}
}
// set template-name as id, to allow to style dialogs
this._template_widget.DOMContainer.setAttribute('id', this.__template.replace(/^(.*\/)?([^/]+)(\.xet)?$/, '$2').replace(/\./g, '-'));
this._template_widget.DOMContainer.setAttribute('id', this.__template.replace(/^(.*\/)?([^/]+?)(\.xet)?(\?.*)$/, '$2').replace(/\./g, '-'));
}