Skip to content

Resolve "Clicking markdown 'Preview' tab spawns two XHR requests"

username-removed-636429 requested to merge 25364-fix-preview-multi-request into master

What does this MR do?

Prevents clicking the "Preview" tab in a markdown field from triggering multiple Ajax requests. Additionally, prevents multiple requests from being generated if "Preview" is clicked more than once before the initial request is complete.

Lastly, refactored some annoying coffeescript-to-javascript conversion cruft and fix some eslint failures.

Are there points in the code the reviewer needs to double check?

Just ensure clicking preview only triggers one ajax request in chrome devtools.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #25364 (closed)

Merge request reports