mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
make input working for select fields
This commit is contained in:
@@ -918,7 +918,7 @@ function importJson(opt_keyPattern){
|
||||
alert("file contains invalid key "+k);
|
||||
return;
|
||||
}
|
||||
let del=document.querySelector('input[name='+k+']');
|
||||
let del=document.querySelector('[name='+k+']');
|
||||
if (del){
|
||||
hasOverwrites=true;
|
||||
}
|
||||
@@ -927,7 +927,7 @@ function importJson(opt_keyPattern){
|
||||
if (!confirm("overwrite existing data?")) return;
|
||||
}
|
||||
for (let k in idata){
|
||||
let del=document.querySelector('input[name='+k+']');
|
||||
let del=document.querySelector('[name='+k+']');
|
||||
if (del){
|
||||
if (del.tagName === 'SELECT'){
|
||||
setSelect(del,idata[k]);
|
||||
|
||||
Reference in New Issue
Block a user