luci-app-bmx6: Fix URL of network topology JSON file 433/head
authorRoger Pueyo Centelles <roger.pueyo@guifi.net>
Sat, 8 Dec 2018 21:02:48 +0000 (22:02 +0100)
committerRoger Pueyo Centelles <roger.pueyo@guifi.net>
Sat, 8 Dec 2018 21:02:48 +0000 (22:02 +0100)
The JavaScript code of the network graph tried to fetch the topology from
%HOST/cgi-bin/luci/status/bmx6/topology, but the topology entry is now located
at admin->network->BMX6 (i.e., %HOST/cgi-bin/luci/admin/network/BMX6/topology).

Fixes #432

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
luci-app-bmx6/bmx6/www/luci-static/resources/bmx6/js/bmx6-graph.js

index 80233ffd5e346fe291df87f77369ce3c37beb905..e3ff0097f08657a2c003c4e8b87175f3f2939374 100644 (file)
@@ -48,7 +48,7 @@ function init() {
 
   divwait = document.getElementById("wait");
 
-  XHR.get('/cgi-bin/luci/status/bmx6/topology', null, function(nodesRequest, nodesData) {
+  XHR.get('/cgi-bin/luci/admin/network/BMX6/topology', null, function(nodesRequest, nodesData) {
     nodes = nodesData;
 
     XHR.get('/cgi-bin/bmx6-info?$myself&', null, function(myselfRequest, myselfData) {