mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-11 01:26:22 +01:00
Moved staticfiles to stock/static
Added STATIC_ROOT to enable collection of staticfiles Ignored static/ directory so changes by end user go untracked Now required python manage.py collectstatic during install procedure
This commit is contained in:
21
stock/static/admin/js/prepopulate.min.js
vendored
Normal file
21
stock/static/admin/js/prepopulate.min.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
(function (a) {
|
||||
a.fn.prepopulate = function (d, g) {
|
||||
return this.each(function () {
|
||||
var b = a(this);
|
||||
b.data("_changed", false);
|
||||
b.change(function () {
|
||||
b.data("_changed", true)
|
||||
});
|
||||
var c = function () {
|
||||
if (b.data("_changed") != true) {
|
||||
var e = [];
|
||||
a.each(d, function (h, f) {
|
||||
a(f).val().length > 0 && e.push(a(f).val())
|
||||
});
|
||||
b.val(URLify(e.join(" "), g))
|
||||
}
|
||||
};
|
||||
a(d.join(",")).keyup(c).change(c).focus(c)
|
||||
})
|
||||
}
|
||||
})(django.jQuery);
|
||||
Reference in New Issue
Block a user