Add Django-1.2.1
[frozenviper.git] / Django-1.2.1 / django / contrib / admin / media / js / prepopulate.min.js
blobf1ca297b80507917a0f0a3b9c0b2c33f8066ea95
1 (function(b){b.fn.prepopulate=function(d,f){return this.each(function(){var a=b(this);a.data("_changed",false);a.change(function(){a.data("_changed",true)});var c=function(){if(a.data("_changed")!=true){var e=[];d.each(function(){b(this).val().length>0&&e.push(b(this).val())});a.val(URLify(e.join(" "),f))}};d.keyup(c).change(c).focus(c)})}})(django.jQuery);