mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-27 19:30:29 +00:00
Clear pending AJAX request if error occurs on page chooser
Merge pull request #5179 from gasman/fix/unsuspend-ajax-on-error
This commit is contained in:
commit
8812e2aa98
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ PAGE_CHOOSER_MODAL_ONLOAD_HANDLERS = {
|
|||
request = null;
|
||||
$('.page-results', modal.body).html(data);
|
||||
ajaxifySearchResults();
|
||||
},
|
||||
error: function() {
|
||||
request = null;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue