diff options
author | 2019-04-20 23:49:12 +0200 | |
---|---|---|
committer | 2019-04-20 23:49:12 +0200 | |
commit | 0e373cd953dd7ee8433cd936a8df050ab097bb08 (patch) | |
tree | 54061f3d1f33247f0a57efc311167ba275c67c94 /pydis_site/static/js/wiki/create.js | |
parent | Merge pull request #213 from python-discord/django_front_page (diff) | |
parent | Replace wiki dep with PyDis fork, add git to Docker (diff) |
Merge pull request #202 from gdude2002/django+200/wiki
[#200] Django Wiki
Diffstat (limited to 'pydis_site/static/js/wiki/create.js')
-rw-r--r-- | pydis_site/static/js/wiki/create.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pydis_site/static/js/wiki/create.js b/pydis_site/static/js/wiki/create.js new file mode 100644 index 00000000..e02d75a3 --- /dev/null +++ b/pydis_site/static/js/wiki/create.js @@ -0,0 +1,13 @@ +//<![CDATA[ +(function($) { + $(document).ready(function (){ + $("#id_title").keyup(function () { + var e = $("#id_slug")[0]; + if(!e._changed) { + slug = URLify(this.value, 50); + e.value = slug; + } + }); + }); +})(jQuery); +//]]> |