diff options
author | Prashant S | 2020-02-27 17:21:19 +0530 |
---|---|---|
committer | GitHub | 2020-02-27 17:21:19 +0530 |
commit | 61c91c743fabb5c31127e8f8a8109364eda9b8ff (patch) | |
tree | d7a1e70ff6bc1fe40ab580326bd92b6f6807e205 /static/admin/js/prepopulate.min.js | |
parent | 802bbc270363d1432cb28cd88d6c9003d8b99b6c (diff) | |
parent | e1fe11723b0d064684137667ba40c32df34483ed (diff) | |
download | arduino_projects_website-61c91c743fabb5c31127e8f8a8109364eda9b8ff.tar.gz arduino_projects_website-61c91c743fabb5c31127e8f8a8109364eda9b8ff.tar.bz2 arduino_projects_website-61c91c743fabb5c31127e8f8a8109364eda9b8ff.zip |
Merge pull request #1 from prashantsinalkar/master
updated ui and code
Diffstat (limited to 'static/admin/js/prepopulate.min.js')
-rw-r--r-- | static/admin/js/prepopulate.min.js | 1 |
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..43c1b79 --- /dev/null +++ b/static/admin/js/prepopulate.min.js @@ -0,0 +1 @@ +(function(b){b.fn.prepopulate=function(d,f,g){return this.each(function(){var a=b(this),h=function(){if(!a.data("_changed")){var e=[];b.each(d,function(a,c){c=b(c);0<c.val().length&&e.push(c.val())});a.val(URLify(e.join(" "),f,g))}};a.data("_changed",!1);a.on("change",function(){a.data("_changed",!0)});if(!a.val())b(d.join(",")).on("keyup change focus",h)})}})(django.jQuery); |