Commit 26a28b08 authored by Kingdutch's avatar Kingdutch Committed by Kingdutch

Issue #2974301 by Kingdutch, emclaughlin: Yoast SEO Field Ajax Race Condition...

Issue #2974301 by Kingdutch, emclaughlin: Yoast SEO Field Ajax Race Condition With Nested Paragraphs
parent 5ac1e933
......@@ -234,8 +234,16 @@
* needs to do the analysis.
*/
Orchestrator.prototype.refreshData = function () {
// Click the refresh data button to perform a Drupal AJAX submit.
this.$form.find('.yoast-seo-preview-submit-button').mousedown();
// We use Drupal's AJAX progress indicator to check that we're not
// interfering with an already running AJAX request. If an AJAX request is
// already running then we reschedule the update.
if (!jQuery('.ajax-progress').length) {
// Click the refresh data button to perform a Drupal AJAX submit.
this.$form.find('.yoast-seo-preview-submit-button').mousedown();
}
else {
this.scheduleUpdate();
}
};
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment