From 23ded770893a45bf303c3e5021372a2945051809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Wed, 2 Mar 2016 10:45:41 +0100 Subject: [PATCH] infobox/location: more detailed command --- lib/infobox/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/infobox/location.js b/lib/infobox/location.js index c61d23d..b656362 100644 --- a/lib/infobox/location.js +++ b/lib/infobox/location.js @@ -92,7 +92,7 @@ define(function () { } function switch2uci() { - document.getElementById("location-latitude").value = "uci set gluon-node-info.@location[0].latitude='" + d.lat.toFixed(9) + "'; uci set gluon-node-info.@location[0].longitude='" + d.lng.toFixed(9) + "'" + 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("h3-latitude").textContent = "Befehl" document.getElementById("div-longitude").style.display = "none" }