Skip to content

Commit

Permalink
chore: fix a typo in umap.forms.js
Browse files Browse the repository at this point in the history
Renamed `udpatePreview()` to `updatePreview()`
  • Loading branch information
almet committed Dec 16, 2023
1 parent 625131f commit 4fbd2fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions umap/static/umap/js/umap.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
this.tabs = L.DomUtil.create('div', 'pictogram-tabs', this.parentNode)
this.body = L.DomUtil.create('div', 'umap-pictogram-body', this.parentNode)
this.footer = L.DomUtil.create('div', '', this.parentNode)
this.udpatePreview()
this.updatePreview()
this.on('define', this.onDefine)
},

Expand All @@ -550,7 +550,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
this.tabs.innerHTML = ''
this.footer.innerHTML = ''
if (this.isDefault()) this.undefine(e)
else this.udpatePreview()
else this.updatePreview()
},
this
)
Expand Down Expand Up @@ -610,7 +610,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
return this.isPath() || this.isRemoteUrl()
},

udpatePreview: function () {
updatePreview: function () {
this.buttons.innerHTML = ''
if (this.isDefault()) return
if (!L.Util.hasVar(this.value())) {
Expand Down Expand Up @@ -666,7 +666,7 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
this.unselectAll(this.body)
this.sync()
this.body.innerHTML = ''
this.udpatePreview()
this.updatePreview()
},

addCategory: function (category, items) {
Expand Down

0 comments on commit 4fbd2fa

Please sign in to comment.