From 057aabca1fa5ae64e21ef18adf71bbee7bf18064 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 16 Oct 2026 23:15:03 +0300 Subject: [PATCH] build: Tom Select replaces bootstrap-multiselect The create wizard's image and network pickers use Tom Select 2.6.2 (its Bootstrap 5 theme and checkbox list), which does not need jQuery; bootstrap-multiselect calls $.isArray, which jQuery 4 removed. The selected images and networks still fill the wizard's own lists. --- instances/templates/create_instance_w2.html | 72 ++-- static/css/bootstrap-multiselect.css | 44 -- static/css/tom-select.bootstrap5.min.css | 2 + static/js/bootstrap-multiselect.js | 44 -- static/js/tom-select.complete.min.js | 454 ++++++++++++++++++++ 5 files changed, 486 insertions(+), 130 deletions(-) delete mode 100644 static/css/bootstrap-multiselect.css create mode 100644 static/css/tom-select.bootstrap5.min.css delete mode 100644 static/js/bootstrap-multiselect.js create mode 100644 static/js/tom-select.complete.min.js diff --git a/instances/templates/create_instance_w2.html b/instances/templates/create_instance_w2.html index 90952d20..b4bb473a 100644 --- a/instances/templates/create_instance_w2.html +++ b/instances/templates/create_instance_w2.html @@ -6,7 +6,7 @@ {% block title %}{% trans "Create new instance" %}{% endblock %} {% block style %} - + {% endblock %} {% block page_heading %} @@ -785,7 +785,7 @@ {% endblock %} {% block script %} - +