From 6b40fbe2ee0d64b146fc506a97fd10c9656e84d9 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 22 Mar 2023 22:11:37 +0900 Subject: [PATCH] test --- static/js/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/custom.js b/static/js/custom.js index dceaee9..2db4a2e 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -864,12 +864,12 @@ function toggle_failover_route(route_id, current_state, color) { element.className = enabledClass var action_taken = "enabled." element.setAttribute('data-tooltip', enabledTooltip) - element.setAttribute('onclick', 'toggle_route('+route_id+', "'+enableState+'")') + element.setAttribute('onclick', 'toggle_failover_route('+route_id+', "'+enableState+'", "'+color+'")') } else if (element.className == enabledClass) { element.className = disabledClass var action_taken = "disabled." element.setAttribute('data-tooltip', disabledTooltip) - element.setAttribute('onclick', 'toggle_route('+route_id+', "'+disableState+'")') + element.setAttribute('onclick', 'toggle_failover_route('+route_id+', "'+disableState+'", "'+color+'")') } M.toast({html: 'Route '+action_taken}); }