ajax.js 658 B

12345678910111213141516171819202122
  1. /**
  2. * DevExtreme (integration/jquery/ajax.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var jQuery = require("jquery");
  11. var ajax = require("../../core/utils/ajax");
  12. var useJQuery = require("./use_jquery")();
  13. if (useJQuery) {
  14. ajax.inject({
  15. sendRequest: function(options) {
  16. if (!options.responseType && !options.upload) {
  17. return jQuery.ajax(options)
  18. }
  19. return this.callBase.apply(this, [options])
  20. }
  21. })
  22. }