mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 09:13:14 +00:00
Clear pending AJAX request if error occurs on page chooser
This commit is contained in:
parent
b1fab70847
commit
e103948abd
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