aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-18 17:01:36 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-18 17:01:36 +0100
commit487866ea0388e743e75dff4fb16a477f01955c91 (patch)
tree33700e9bf613e18949ad140ef4c1e8634417f2ef /pydis_site/templates/wiki
parentLinks plugin is.. functional.. (diff)
Prevent accidental submission of link plugin form
Diffstat (limited to 'pydis_site/templates/wiki')
-rw-r--r--pydis_site/templates/wiki/plugins/links/sidebar.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/plugins/links/sidebar.html b/pydis_site/templates/wiki/plugins/links/sidebar.html
index 80c390dc..fd948af1 100644
--- a/pydis_site/templates/wiki/plugins/links/sidebar.html
+++ b/pydis_site/templates/wiki/plugins/links/sidebar.html
@@ -8,6 +8,9 @@
<pre>[Title of link](wiki:ArticleSlug)</pre>
+{# We do this to prevent accidental form submission - this isn't _really_ a form #}
+<input type="submit" disabled style="display: none" aria-hidden="true" />
+
<div class="field">
<div class="control has-icons-left">
<div class="dropdown">