Skip to content

Commit ea9229e

Browse files
committed
refactor(app): Remove unused click event listener for contentlet editing
1 parent 837c5eb commit ea9229e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • examples/dotcms-symfony/assets

examples/dotcms-symfony/assets/app.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ if (window.dotUVE) {
1414
window.dotUVE.createSubscription('changes', (changes) => {
1515
window.location.reload();
1616
})
17-
18-
document.addEventListener('click', (e) => {
19-
if (e.target.matches('button[data-contentlet]')) {
20-
const contentlet = JSON.parse(e.target.dataset.contentlet);
21-
window.dotUVE.editContentlet(contentlet);
22-
}
23-
});
24-
2517
} else {
2618
console.warn('dotUVE is not available, you might experience issues with the the Universal Visual Editor');
2719
}

0 commit comments

Comments
 (0)