From 4c8b2c03c6a8a07ac04f3c3428875ce84915a77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Thu, 3 Mar 2016 20:00:18 +0100 Subject: [PATCH] infobox/location: fix uci commands --- 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 b656362..128ad74 100644 --- a/lib/infobox/location.js +++ b/lib/infobox/location.js @@ -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" }