diff options
Diffstat (limited to 'tbc/static/admin/js/prepopulate.min.js')
-rw-r--r-- | tbc/static/admin/js/prepopulate.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tbc/static/admin/js/prepopulate.min.js b/tbc/static/admin/js/prepopulate.min.js new file mode 100644 index 0000000..75f3c17 --- /dev/null +++ b/tbc/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); |