Sha256: e91c6dd502eb1349000632b3af372d0b3ce6b93953b3400270fef34c8f7a61b3

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

(function () {
  let _ajax_request = function(url, data, callback, type, method) {
    if ($.isFunction(data)) {
      callback = data;
      data = {};
    }
    return $.ajax({
      type: method,
      url: url,
      data: data,
      success: callback,
      dataType: type
    });
  };

  jQuery.extend({
    put: function(url, data, callback, type) {
      return _ajax_request(url, data, callback, type, "PUT");
    }
  });
})();

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.5.1 app/assets/javascripts/pages/admin/lib/ajax_extensions.es6.jsx