Project

General

Profile

« Previous | Next » 

Revision 36d6d03e

Added by Benjamin Dauvergne over 12 years ago

add confirmation dialog to the automatic validation button, fixes #1886

View differences:

calebasse/agenda/templates/agenda/act-validation.html
10 10
          <input type="hidden" name="unlock-all" value="1">
11 11
          <button id="unlock-all">Tout déverrouiller</button>
12 12
        </form>
13
        <form method="post">
13
        <form method="post" id="validate-all-form">
14 14
          {% csrf_token %}
15 15
          <input type="hidden" name="validate-all" value="1">
16 16
          <button id="validate-all">Validation automatique</button>
......
85 85
    $(this).next('button').prop('disabled',
86 86
      ($(this).data('previous') == $(this).val()));
87 87
  })
88
  $('#validate-all-form').on('submit', function () {
89
    return window.confirm('Confirmez-vous la validation automatique des actes ?');
90
  });
88 91
</script>
89 92
{% endblock %}

Also available in: Unified diff