Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295445

Remove jQuery Form dependency from misc/ajax.js

$
0
0

Problem/Motivation

Steps to reproduce

Proposed resolution

  • In misc/ajax.js, replace the call to $.ajaxSubmit() with fetch() if possible, or $.ajax() if that's an easier step and we can then replace $.ajax() with fetch() in a followup.
  • For BC, we should preserve at least some of the existing events, like beforeSerialize(), beforeSubmit(), and beforeSend(). If in addition to those 3 it makes sense to preserve all of the existing $.ajax() events, that might be a point in favor of using $.ajax() over fetch() for now, especially if that can work easily enough with FormData.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295445


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>