infobox/location: fix uci commands

This commit is contained in:
Milan Pässler 2016-03-03 20:00:18 +01:00
parent 593a96e07e
commit 4c8b2c03c6
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ define(function () {
}
function switch2uci() {
document.getElementById("location-latitude").value = "gluon-node-info.@location[0]='location'; gluon-node-info.@location[0].share_location='1'; uci set gluon-node-info.@location[0].latitude='" + d.lat.toFixed(9) + "'; uci set gluon-node-info.@location[0].longitude='" + d.lng.toFixed(9) + "'; uci commit gluon-node-info"
document.getElementById("location-latitude").value = "uci set gluon-node-info.@location[0]='location'; uci set gluon-node-info.@location[0].share_location='1'; uci set gluon-node-info.@location[0].latitude='" + d.lat.toFixed(9) + "'; uci set gluon-node-info.@location[0].longitude='" + d.lng.toFixed(9) + "'; uci commit gluon-node-info"
document.getElementById("h3-latitude").textContent = "Befehl"
document.getElementById("div-longitude").style.display = "none"
}