From 430c05dccd85a976e47639a20e5a9693d27c80a6 Mon Sep 17 00:00:00 2001 From: Rui Carvalho Date: Sat, 8 Jun 2019 16:36:13 +0100 Subject: [PATCH] Better import of jQuery for the change_form that adds the jQuery.ui.tabs to the interface --- tabbed_admin/templates/tabbed_admin/change_form.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabbed_admin/templates/tabbed_admin/change_form.html b/tabbed_admin/templates/tabbed_admin/change_form.html index d7d6be4..66260b4 100644 --- a/tabbed_admin/templates/tabbed_admin/change_form.html +++ b/tabbed_admin/templates/tabbed_admin/change_form.html @@ -82,7 +82,9 @@ } - })(django.jQuery); + })((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined') + ? django.jQuery + : jQuery);