From 109545d0064e9ca16bc93440fdbc6a8891d2f06f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 23 May 2024 18:26:36 +0200 Subject: [PATCH] chore: prettier --- umap/static/umap/js/modules/ui/dialog.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/umap/static/umap/js/modules/ui/dialog.js b/umap/static/umap/js/modules/ui/dialog.js index a1542103..6833fd13 100644 --- a/umap/static/umap/js/modules/ui/dialog.js +++ b/umap/static/umap/js/modules/ui/dialog.js @@ -4,11 +4,7 @@ import { translate } from '../i18n.js' export default class Dialog { constructor(parent) { this.parent = parent - this.container = DomUtil.create( - 'dialog', - 'umap-dialog', - this.parent - ) + this.container = DomUtil.create('dialog', 'umap-dialog', this.parent) DomEvent.disableClickPropagation(this.container) DomEvent.on(this.container, 'contextmenu', DomEvent.stopPropagation) // Do not activate our custom context menu. DomEvent.on(this.container, 'wheel', DomEvent.stopPropagation) @@ -23,7 +19,7 @@ export default class Dialog { this.container.close() } - open({className, content, modal} = {}) { + open({ className, content, modal } = {}) { this.container.innerHTML = '' if (modal) this.container.showModal() else this.container.show()