We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982d904 commit 65a93dfCopy full SHA for 65a93df
default-views/account/register-form.hbs
@@ -2,7 +2,7 @@
2
<div class="col-md-6">
3
<div class="panel panel-default">
4
<div class="panel-body">
5
- <form method="post" action="/api/accounts/new">
+ <form method="post" action="/api/accounts/new" id="RegisterForm">
6
{{> shared/error}}
7
8
<div class="form-group">
@@ -134,6 +134,14 @@
134
connect.addEventListener('change', function () {
135
container.classList.toggle('hidden', !connect.checked)
136
})
137
+
138
+ var form = document.getElementById('RegisterForm')
139
+ var externalWebIdField = document.getElementById('externalWebId')
140
+ form.addEventListener('submit', function () {
141
+ if (!connect.checked) {
142
+ externalWebIdField.value = ''
143
+ }
144
+ })
145
146
</script>
147
0 commit comments