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.

35 lines
944B

  1. $(document).ready(function () {
  2. initDuplicateOtherToOtherMerchant();
  3. });
  4. function initDuplicateOtherToOtherMerchant() {
  5. $('.duplicate-modal-action').on('click', function (e) {
  6. $btn = $(this);
  7. e.preventDefault();
  8. $.ajax({
  9. url: $btn.prop('href'),
  10. method: "POST",
  11. dataType: "json",
  12. success: function (response) {
  13. $('body').append(response.data);
  14. $('#carac-modal-duplicate').modal('show');
  15. //initDuplicateModal();
  16. }
  17. });
  18. });
  19. }
  20. function initDuplicateModal(){
  21. $('#carac-button-visit-merchant').on('click', function (e){
  22. $.ajax({
  23. url: $btn.prop('href'),
  24. data: $('form[name="duplicate_to_other_merchant_form"]').serialize(),
  25. method: "POST",
  26. dataType: "json",
  27. success: function (response) {
  28. }
  29. });
  30. });
  31. }