Don’t change a button’s text when disabled after click

This commit is contained in:
gregoirenovel 2018-08-23 10:11:41 +02:00
parent 8c11c24050
commit a86e3a3156
14 changed files with 17 additions and 17 deletions

View file

@ -12,7 +12,7 @@
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
.send-wrapper
= f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." }
= f.submit 'Sauvegarder', class: 'button send', data: { disable: true }
- else
%h2.empty-text Aucune annotation privée

View file

@ -8,4 +8,4 @@
(taille max : 20 Mo)
.send-wrapper
= f.submit 'Envoyer', class: 'button send', data: { disable_with: "Envoi…" }
= f.submit 'Envoyer', class: 'button send', data: { disable: true }