From 9667c791623cfe3ea5bc508c3a72f4c6722c79c1 Mon Sep 17 00:00:00 2001 From: imperosol Date: Sun, 1 Dec 2024 18:24:11 +0100 Subject: [PATCH] remove htmx-ext-response-targets --- core/static/bundled/htmx-index.js | 2 -- package-lock.json | 6 ------ package.json | 1 - subscription/templates/subscription/subscription.jinja | 5 ++--- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/static/bundled/htmx-index.js b/core/static/bundled/htmx-index.js index 72fa5120..56edea4a 100644 --- a/core/static/bundled/htmx-index.js +++ b/core/static/bundled/htmx-index.js @@ -1,5 +1,3 @@ import htmx from "htmx.org"; -import "htmx-ext-response-targets/response-targets"; - Object.assign(window, { htmx }); diff --git a/package-lock.json b/package-lock.json index cb6483bf..05418a69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,6 @@ "d3-force-3d": "^3.0.5", "easymde": "^2.18.0", "glob": "^11.0.0", - "htmx-ext-response-targets": "^2.0.1", "htmx.org": "^2.0.3", "jquery": "^3.7.1", "jquery-ui": "^1.14.0", @@ -4141,11 +4140,6 @@ "node": ">= 0.4" } }, - "node_modules/htmx-ext-response-targets": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/htmx-ext-response-targets/-/htmx-ext-response-targets-2.0.1.tgz", - "integrity": "sha512-uCMw098+0xcrs7UW/s8l8hqj5wfOaVnVV7286cS+TNMNguo8fQpi/PEaZuT4VUysIiRcjj4pcTkuaP6Q9iJ3XA==" - }, "node_modules/htmx.org": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-2.0.3.tgz", diff --git a/package.json b/package.json index 7640a11f..2ca46967 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "easymde": "^2.18.0", "glob": "^11.0.0", "htmx.org": "^2.0.3", - "htmx-ext-response-targets": "^2.0.1", "jquery": "^3.7.1", "jquery-ui": "^1.14.0", "jquery.shorten": "^1.0.0", diff --git a/subscription/templates/subscription/subscription.jinja b/subscription/templates/subscription/subscription.jinja index 1a88e4f3..98916827 100644 --- a/subscription/templates/subscription/subscription.jinja +++ b/subscription/templates/subscription/subscription.jinja @@ -12,10 +12,9 @@ So we give them here. If the aforementioned bug is resolved, you can remove this. #} {% block additional_js %} - + {% endblock %} @@ -35,7 +34,7 @@ {% block content %}

{% trans %}New subscription{% endtrans %}

-
+
{% with title1=_("Existing member"), title2=_("New member") %} {{ tabs([ (title1, form_fragment(existing_user_form, existing_user_post_url)),