summaryrefslogtreecommitdiff
path: root/static/admin/js/prepopulate.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/admin/js/prepopulate.min.js')
-rw-r--r--static/admin/js/prepopulate.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/admin/js/prepopulate.min.js b/static/admin/js/prepopulate.min.js
new file mode 100644
index 0000000..75f3c17
--- /dev/null
+++ b/static/admin/js/prepopulate.min.js
@@ -0,0 +1 @@
+(function(c){c.fn.prepopulate=function(e,f,g){return this.each(function(){var a=c(this),b=function(){if(!a.data("_changed")){var b=[];c.each(e,function(a,d){d=c(d);0<d.val().length&&b.push(d.val())});a.val(URLify(b.join(" "),f,g))}};a.data("_changed",!1);a.change(function(){a.data("_changed",!0)});a.val()||c(e.join(",")).keyup(b).change(b).focus(b)})}})(django.jQuery);