From 8958ea2ec3b656eb0ac91319de5df337b6fe7dd2 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 22 Mar 2023 19:36:37 +0900 Subject: [PATCH] syntax --- renderer.py | 8 +++----- static/js/custom.js | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/renderer.py b/renderer.py index dc77e26..c902964 100644 --- a/renderer.py +++ b/renderer.py @@ -285,8 +285,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes): # Print the button for the Exit routes: if exit_route_found: - routes = routes+""" -

""" - routes = routes+"" + routes = routes+"" # Get machine tags tag_array = "" diff --git a/static/js/custom.js b/static/js/custom.js index 8b1890a..7c85c6a 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -788,12 +788,12 @@ function toggle_exit(route1, route2, exit_id, current_state) { element.className = enabledClass var action_taken = "enabled." element.setAttribute('data-tooltip', enabledTooltip) - element.setAttribute('onclick', 'toggle_exit('+route1+', '+route2+', '+exit_id+', "'+enableState+'")') + element.setAttribute('onclick', 'toggle_exit('+route1+', '+route2+', "'+exit_id+'", "'+enableState+'")') } else if (element.className == enabledClass) { element.className = disabledClass var action_taken = "disabled." element.setAttribute('data-tooltip', disabledTooltip) - element.setAttribute('onclick', 'toggle_exit('+route1+', '+route2+', '+exit_id+', "'+disableState+'")') + element.setAttribute('onclick', 'toggle_exit('+route1+', '+route2+', "'+exit_id+'", "'+disableState+'")') } M.toast({html: 'Exit Route '+action_taken}); }