|
12345678910111213141516171819202122232425262728293031323334 |
- $(document).ready(function () {
- initDuplicateOtherToOtherMerchant();
- });
-
- function initDuplicateOtherToOtherMerchant() {
- $('.duplicate-modal-action').on('click', function (e) {
- $btn = $(this);
- e.preventDefault();
- $.ajax({
- url: $btn.prop('href'),
- method: "POST",
- dataType: "json",
- success: function (response) {
- $('body').append(response.data);
- $('#carac-modal-duplicate').modal('show');
- //initDuplicateModal();
-
- }
- });
- });
- }
-
- function initDuplicateModal(){
- $('#carac-button-visit-merchant').on('click', function (e){
- $.ajax({
- url: $btn.prop('href'),
- data: $('form[name="duplicate_to_other_merchant_form"]').serialize(),
- method: "POST",
- dataType: "json",
- success: function (response) {
- }
- });
- });
- }
|