diff options
author | 2019-10-03 18:52:45 +0100 | |
---|---|---|
committer | 2019-10-03 18:52:45 +0100 | |
commit | b83f1b21ced90a4163ed505ceb7d2d6ddc667e85 (patch) | |
tree | 43040a67d16684e9f90eb2eab6f8a1e5b56da249 /pydis_site/static/js/wiki/create.js | |
parent | Remove accidental static files commit; fix Allauth (diff) |
Re-add erroneously removed static files
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); +//]]> |