Skip to content
Snippets Groups Projects
Commit c6104bcc authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

don't create vue app more than once, fixes #3005

Closes #3005

Merge request studip/studip!2056
parent af094dac
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,13 @@ STUDIP.domReady(() => {
});
});
STUDIP.dialogReady(() => {
const node = document.querySelector('.content-modules-controls-vue-app');
STUDIP.dialogReady((event) => {
let target = event.target ?? document;
if (target instanceof jQuery) {
target = target.get(0);
}
const node = target.querySelector('.content-modules-controls-vue-app');
if (!node) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment