UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

23 lines (22 loc) 693 B
/** * DevExtreme (esm/integration/jquery/ajax.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import jQuery from "jquery"; import ajax from "../../core/utils/ajax"; import useJQueryFn from "./use_jquery"; const useJQuery = useJQueryFn(); if (useJQuery) { ajax.inject({ sendRequest: function(options) { if (!options.responseType && !options.upload) { return jQuery.ajax(options) } return this.callBase.apply(this, [options]) } }) }