diff --git a/umap/static/umap/js/modules/ui/panel.js b/umap/static/umap/js/modules/ui/panel.js index 986f4fac..0aa04b05 100644 --- a/umap/static/umap/js/modules/ui/panel.js +++ b/umap/static/umap/js/modules/ui/panel.js @@ -21,7 +21,7 @@ export class Panel { } isOpen() { - return this.container.classList.contains("on") + return this.container.classList.contains('on') } open({ content, className, actions = [] } = {}) { diff --git a/umap/static/umap/js/umap.forms.js b/umap/static/umap/js/umap.forms.js index 0f442257..92c1cdfa 100644 --- a/umap/static/umap/js/umap.forms.js +++ b/umap/static/umap/js/umap.forms.js @@ -943,9 +943,8 @@ L.FormBuilder.MultiChoice = L.FormBuilder.Element.extend({ } const choices = this.getChoices().map(([value, label]) => value) if (choices.includes(value)) { - this.container.querySelector( - `input[type="radio"][value="${value}"]` - ).checked = true + this.container.querySelector(`input[type="radio"][value="${value}"]`).checked = + true } }, diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 9e5244ce..ce455434 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -548,8 +548,7 @@ U.Map = L.Map.extend({ initShortcuts: function () { const globalShortcuts = function (e) { - - if (e.key === 'Escape') { + if (e.key === 'Escape') { if (this.dialog.visible) { this.dialog.close() } else if (this.editEnabled && this.editTools.drawing()) { @@ -568,7 +567,7 @@ U.Map = L.Map.extend({ // From now on, only ctrl/meta shortcut if (!(e.ctrlKey || e.metaKey) || e.shiftKey) return - if (e.key === 'f') { + if (e.key === 'f') { L.DomEvent.stop(e) this.search() } @@ -576,8 +575,6 @@ U.Map = L.Map.extend({ /* Edit mode only shortcuts */ if (!this.hasEditMode()) return - - // Edit mode Off if (!this.editEnabled) { switch (e.key) { diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index f6b702cf..064287a7 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -469,8 +469,8 @@ U.Layer.Heat = L.HeatLayer.extend({ this._latlngs[i].alt !== undefined ? this._latlngs[i].alt : this._latlngs[i][2] !== undefined - ? +this._latlngs[i][2] - : 1 + ? +this._latlngs[i][2] + : 1 grid[y] = grid[y] || [] cell = grid[y][x]