You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617
  1. jQuery(document).ready(function () {
  2. $('.ticket-status').on("change", function () {
  3. $.ajax({
  4. url: $('#ticketStatusForm').prop('action'),
  5. method: "POST",
  6. data: $('#ticketStatusForm').serialize(),
  7. dataType: "json",
  8. success: function (data) {
  9. if (data.success) {
  10. Notification.add('success', 'Le status a bien été mise à jour.');
  11. } else {
  12. Notification.add('danger', 'Une erreur est survenue.');
  13. }
  14. }
  15. });
  16. });
  17. });