From 7066de875f706a39d4b610daf5c9214bce40b469 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 17 Sep 2020 20:30:05 +0200 Subject: Admin: force bootstrap load of ajax_select (removed in debian package) --- CHANGES.md | 6 +++++ ishtar_common/static/ajax_select/js/bootstrap.js | 30 ++++++++++++++++++++++++ ishtar_common/templates/admin/change_form.html | 2 ++ ishtar_common/version.py | 4 ++-- 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 ishtar_common/static/ajax_select/js/bootstrap.js diff --git a/CHANGES.md b/CHANGES.md index 963604493..577d7fed3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,12 @@ Ishtar changelog ================ +v3.0.12 - 2020-09-17 +-------------------- + +### Bug fixes ### +- Fix missing "bootstrap.js" file missing in debian install + v3.0.11 - 2020-08-31 -------------------- diff --git a/ishtar_common/static/ajax_select/js/bootstrap.js b/ishtar_common/static/ajax_select/js/bootstrap.js new file mode 100644 index 000000000..cb742eaa9 --- /dev/null +++ b/ishtar_common/static/ajax_select/js/bootstrap.js @@ -0,0 +1,30 @@ +(function(w) { + /** + * load jquery and jquery-ui if needed + */ + + function not(thing) { + return typeof thing === 'undefined'; + } + + function loadJS(src) { + document.write(' {{ block.super }}