Fix typo toogle/toggle

This commit is contained in:
Benjamin Renard 2020-06-02 19:57:19 +02:00
parent ba41b527c0
commit 62ec0a2b1e
2 changed files with 8 additions and 8 deletions

View file

@ -30,7 +30,7 @@ var LSformElement_supannCompositeAttribute_field_value_component = new Class({
'title': this.params.searchBtn, 'title': this.params.searchBtn,
} }
); );
this.searchBtn.addEvent('click',this.toogleInputSearch.bind(this)); this.searchBtn.addEvent('click',this.toggleInputSearch.bind(this));
this.searchBtn.injectBefore(this.inputSearch); this.searchBtn.injectBefore(this.inputSearch);
this._lastSearch=null; this._lastSearch=null;
@ -38,7 +38,7 @@ var LSformElement_supannCompositeAttribute_field_value_component = new Class({
} }
}, },
toogleInputSearch: function() { toggleInputSearch: function() {
if (this.inputSearch.getStyle('display')=='none') { if (this.inputSearch.getStyle('display')=='none') {
this.inputSearch.setStyle('display','block'); this.inputSearch.setStyle('display','block');
this.inputSearch.focus(); this.inputSearch.focus();
@ -61,7 +61,7 @@ var LSformElement_supannCompositeAttribute_field_value_component = new Class({
} }
if (event.key=='esc') { if (event.key=='esc') {
this.toogleInputSearch(); this.toggleInputSearch();
} }
}, },
@ -157,7 +157,7 @@ var LSformElement_supannCompositeAttribute_field_value_component = new Class({
} }
this.span.set('html',li.get('data-translated')); this.span.set('html',li.get('data-translated'));
this.span.set('title',li.get('data-value')); this.span.set('title',li.get('data-value'));
this.toogleInputSearch(); this.toggleInputSearch();
}, },
clear: function() { clear: function() {

View file

@ -29,14 +29,14 @@ var LSformElement_supannLabeledValue_field_value = new Class({
'title': this.params.searchBtn, 'title': this.params.searchBtn,
} }
); );
this.searchBtn.addEvent('click',this.toogleInputSearch.bind(this)); this.searchBtn.addEvent('click',this.toggleInputSearch.bind(this));
this.searchBtn.injectAfter(this.span); this.searchBtn.injectAfter(this.span);
this._lastSearch=null; this._lastSearch=null;
this._possibleValues=null; this._possibleValues=null;
}, },
toogleInputSearch: function() { toggleInputSearch: function() {
if (this.inputSearch.getStyle('display')=='none') { if (this.inputSearch.getStyle('display')=='none') {
this.inputSearch.setStyle('display','block'); this.inputSearch.setStyle('display','block');
this.inputSearch.focus(); this.inputSearch.focus();
@ -59,7 +59,7 @@ var LSformElement_supannLabeledValue_field_value = new Class({
} }
if (event.key=='esc') { if (event.key=='esc') {
this.toogleInputSearch(); this.toggleInputSearch();
} }
}, },
@ -154,7 +154,7 @@ var LSformElement_supannLabeledValue_field_value = new Class({
} }
this.span.set('html',li.get('data-translated')); this.span.set('html',li.get('data-translated'));
this.span.set('title',li.get('data-value')); this.span.set('title',li.get('data-value'));
this.toogleInputSearch(); this.toggleInputSearch();
}, },
clear: function() { clear: function() {