Sha256: 567fea33d0c5c09fcda4627374d08b11a650e029db547cab8873afd0a1e963f6

Contents?: true

Size: 304 Bytes

Versions: 38

Compression:

Stored size: 304 Bytes

Contents

mumuki.load(function () {
  $('.btn-confirmation').on('click change', function (evt) {
    var token = new mumuki.CsrfToken();

    $.ajax(token.newRequest({
      method: 'POST',
      url: $(this).data('confirmation-url'),
      xhrFields: {withCredentials: true}
    }));

    return true;
  });
});

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
mumuki-laboratory-5.3.0 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.2.1 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.2.0 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.1.1 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.1.0 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.12 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.11 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.10 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.9 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.8 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.7 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.6 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.5 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.4 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.3 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.2 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.1 app/assets/javascripts/application/confirmation.js
mumuki-laboratory-5.0.0 app/assets/javascripts/application/confirmation.js