chore: fix a typo in umap.forms.js

Renamed `udpatePreview()` to `updatePreview()`
This commit is contained in:
Alexis Métaireau 2023-12-16 14:13:42 +01:00
parent 625131f7df
commit 4fbd2fabe5

View file

@ -529,7 +529,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
this.tabs = L.DomUtil.create('div', 'pictogram-tabs', this.parentNode) this.tabs = L.DomUtil.create('div', 'pictogram-tabs', this.parentNode)
this.body = L.DomUtil.create('div', 'umap-pictogram-body', this.parentNode) this.body = L.DomUtil.create('div', 'umap-pictogram-body', this.parentNode)
this.footer = L.DomUtil.create('div', '', this.parentNode) this.footer = L.DomUtil.create('div', '', this.parentNode)
this.udpatePreview() this.updatePreview()
this.on('define', this.onDefine) this.on('define', this.onDefine)
}, },
@ -550,7 +550,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
this.tabs.innerHTML = '' this.tabs.innerHTML = ''
this.footer.innerHTML = '' this.footer.innerHTML = ''
if (this.isDefault()) this.undefine(e) if (this.isDefault()) this.undefine(e)
else this.udpatePreview() else this.updatePreview()
}, },
this this
) )
@ -610,7 +610,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
return this.isPath() || this.isRemoteUrl() return this.isPath() || this.isRemoteUrl()
}, },
udpatePreview: function () { updatePreview: function () {
this.buttons.innerHTML = '' this.buttons.innerHTML = ''
if (this.isDefault()) return if (this.isDefault()) return
if (!L.Util.hasVar(this.value())) { if (!L.Util.hasVar(this.value())) {
@ -666,7 +666,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
this.unselectAll(this.body) this.unselectAll(this.body)
this.sync() this.sync()
this.body.innerHTML = '' this.body.innerHTML = ''
this.udpatePreview() this.updatePreview()
}, },
addCategory: function (category, items) { addCategory: function (category, items) {