web/static/admin/js/prepopulate.min.js
author cavaliet
Mon, 09 May 2011 18:57:23 +0200
changeset 103 5578dcb54f4d
parent 0 bdf22b140727
permissions -rw-r--r--
merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     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);