This commit is contained in:
iFargle
2023-03-30 11:38:53 +09:00
parent 6dac7ad7a6
commit 58d9c30ce7

View File

@@ -855,18 +855,18 @@ function toggle_route(route_id, current_state, page) {
function get_routes() {
console.log("Getting info for all routes")
var all_routes = ""
var data
$.ajax({
type:"POST",
async: false,
type:"POST",
url: "api/get_routes",
contentType: "application/json",
success: function(response) {
console.log("Got all routes.")
all_routes = JSON.stringify(response)
data = response
}
})
return all_routes
return data
}
function toggle_failover_route_routespage(routeid, current_state, prefix, route_id_list) {
@@ -913,7 +913,7 @@ function toggle_failover_route_routespage(routeid, current_state, prefix, route_
var enabled_status = "False"
// Debug.
console.log("in toggle_failover_state_routespage: Routes: "+routes)
console.log("in toggle_failover_state_routespage: Routes: "+JSON.stringify(routes))
// Get the primary and enabled displays for the prefix:
for (let i=0; i < route_id_list.length; i++) {