From f5a94fde9639e9e4afe6fa4938b5ec749046f2ad Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Thu, 28 Nov 2019 21:55:20 +0100 Subject: [PATCH] Add url to plugin --- pwnagotchi/ui/web/templates/plugins.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pwnagotchi/ui/web/templates/plugins.html b/pwnagotchi/ui/web/templates/plugins.html index e96d2445..82714d58 100644 --- a/pwnagotchi/ui/web/templates/plugins.html +++ b/pwnagotchi/ui/web/templates/plugins.html @@ -7,13 +7,13 @@ Plugins {% block script %} $(function(){ - $("input[type=checkbox]").change(function(e) { + $('input[type=checkbox]').change(function(e) { var checkbox = $(this); - var form = checkbox.closest("form"); + var form = checkbox.closest('form'); var url = form.attr('action'); $.ajax({ - type: "POST", + type: 'POST', url: url, data: form.serialize(), success: function(data) { @@ -28,7 +28,9 @@ $(function(){ {% block content %}
{% for name in database.keys() %} -

{{name}}

+

+ {{name}} +