use a number display to avoid wrong input and support locales

This commit is contained in:
Jakob Ketterl
2021-04-28 23:03:03 +02:00
parent 3bc39a9ca3
commit bc193c834c
2 changed files with 8 additions and 1 deletions

View File

@ -76,7 +76,7 @@ TuneableFrequencyDisplay.prototype = new FrequencyDisplay();
TuneableFrequencyDisplay.prototype.setupElements = function() {
FrequencyDisplay.prototype.setupElements.call(this);
this.input = $('<input>');
this.input = $('<input type="number" step="any">');
this.suffixInput = $('<select tabindex="-1">');
this.suffixInput.append($.map(this.suffixes, function(e, p) {
return $('<option value="' + e + '">' + p + 'Hz</option>');