summaryrefslogtreecommitdiff
path: root/doc/development/new_fe_guide/modules/dirty_submit.md
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2019-08-19 23:41:23 +0000
committerEvan Read <eread@gitlab.com>2019-08-19 23:41:23 +0000
commit3bc0a1185cdaa50c9cf8b2ffb30cd89442f8b2bc (patch)
tree7475b6885dd542543d20d30b54dae557e88fa106 /doc/development/new_fe_guide/modules/dirty_submit.md
parenta749fcbea71de056cec2e71b752bdedcb77af47c (diff)
downloadgitlab-ce-3bc0a1185cdaa50c9cf8b2ffb30cd89442f8b2bc.tar.gz
Standardize markdown in dev and workflow
Delete trailing whitespace, fix blockquotes, fix note boxes, with indentation, clean up tables, etc.
Diffstat (limited to 'doc/development/new_fe_guide/modules/dirty_submit.md')
-rw-r--r--doc/development/new_fe_guide/modules/dirty_submit.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/development/new_fe_guide/modules/dirty_submit.md b/doc/development/new_fe_guide/modules/dirty_submit.md
index 6c03958b463..217743ea395 100644
--- a/doc/development/new_fe_guide/modules/dirty_submit.md
+++ b/doc/development/new_fe_guide/modules/dirty_submit.md
@@ -1,7 +1,6 @@
# Dirty Submit
-> [Introduced][ce-21115] in GitLab 11.3.
-> [dirty_submit][dirty-submit]
+> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21115) in GitLab 11.3.
## Summary
@@ -9,6 +8,9 @@ Prevent submitting forms with no changes.
Currently handles `input`, `textarea` and `select` elements.
+Also, see [the code](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/dirty_submit/)
+within the GitLab project.
+
## Usage
```js
@@ -18,6 +20,3 @@ new DirtySubmitForm(document.querySelector('form'));
// or
new DirtySubmitForm(document.querySelectorAll('form'));
```
-
-[ce-21115]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21115
-[dirty-submit]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/dirty_submit/ \ No newline at end of file