Updated static files, and docker

This commit is contained in:
Raelon Masters
2020-09-10 20:54:00 -04:00
parent 88c0eff293
commit 0391bb94a4
102 changed files with 5988 additions and 3287 deletions

View File

@@ -1,7 +1,8 @@
(function($) {
'use strict';
var init = function($element, options) {
var settings = $.extend({
'use strict';
{
const $ = django.jQuery;
const init = function($element, options) {
const settings = $.extend({
ajax: {
data: function(params) {
return {
@@ -15,9 +16,9 @@
};
$.fn.djangoAdminSelect2 = function(options) {
var settings = $.extend({}, options);
const settings = $.extend({}, options);
$.each(this, function(i, element) {
var $element = $(element);
const $element = $(element);
init($element, settings);
});
return this;
@@ -34,4 +35,4 @@
return $newFormset.find('.admin-autocomplete').djangoAdminSelect2();
};
})(this));
}(django.jQuery));
}