PageRenderTime 145ms CodeModel.GetById 70ms app.highlight 10ms RepoModel.GetById 61ms app.codeStats 0ms

/django/contrib/admin/media/js/prepopulate.min.js

https://code.google.com/p/mango-py/
JavaScript | 1 lines | 1 code | 0 blank | 0 comment | 0 complexity | fb8d07765d1bfff5cf09e82ffe78cadf MD5 | raw file
1(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);