Commit 48c9c158 authored by Robert's avatar Robert

Select button by attribute not by class, refs #610

parent 4ff760a4
Pipeline #1433 failed with stage
in 1 minute and 41 seconds
......@@ -21,7 +21,7 @@
versendet.">
</span>
</span>
<button class="btn btn-primary">{{ submit_label }}</button>
<button class="btn btn-primary" data-conversation-submit>{{ submit_label }}</button>
</form>
{% endblock %}
......
......@@ -21,14 +21,14 @@ function submit (form) {
}
function setInactive (form) {
const btn = $('.btn', form)
const btn = $('[data-conversation-submit]', form)
btn.disabled = true
btn.classList.add('btn-progress')
$('textarea', form).readOnly = true
}
function setActive (form) {
const btn = $('.btn', form)
const btn = $('[data-conversation-submit]', form)
btn.disabled = false
btn.classList.remove('btn-progress')
$('textarea', form).readOnly = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment