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/move.js | |
parent | Remove accidental static files commit; fix Allauth (diff) |
Re-add erroneously removed static files
Diffstat (limited to 'pydis_site/static/js/wiki/move.js')
-rw-r--r-- | pydis_site/static/js/wiki/move.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pydis_site/static/js/wiki/move.js b/pydis_site/static/js/wiki/move.js new file mode 100644 index 00000000..ddab06f5 --- /dev/null +++ b/pydis_site/static/js/wiki/move.js @@ -0,0 +1,8 @@ +$('#id_destination').after($('#dest_selector').remove()); +$('#id_destination').attr('type', 'hidden'); + +function select_path(path, title) { + $('#id_destination').val(path); + if (title == "(root)") title = ""; + $('#dest_selector .dest_selector_title').html(title ? title : " / "); +} |