From e35b21abb1b09d21eac1d69962588f5808a88a63 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 28 Apr 2022 16:04:46 +0000 Subject: Add button for collection import and JS for submitting form --- wqflask/wqflask/templates/collections/list.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/collections/list.html b/wqflask/wqflask/templates/collections/list.html index e6a1ec9b..fb3946fb 100644 --- a/wqflask/wqflask/templates/collections/list.html +++ b/wqflask/wqflask/templates/collections/list.html @@ -15,18 +15,20 @@ {% endif %}
-
- -
+
+
+ +
+

-
+
{% if collections|length > 0 %} @@ -116,6 +118,11 @@ return $("#collections_form").submit(); }; + $("#import_collection").on("click", function() { + url = $(this).data("url") + submit_special(url) + }); + $("#remove_collections").on("click", function() { url = $(this).data("url") collections = [] -- cgit v1.2.3