kopia lustrzana https://github.com/wagtail/wagtail
Clear pending AJAX request if error occurs on page chooser
Merge pull request #5179 from gasman/fix/unsuspend-ajax-on-errorpull/5318/head
commit
8812e2aa98
|
@ -40,6 +40,9 @@ PAGE_CHOOSER_MODAL_ONLOAD_HANDLERS = {
|
|||
request = null;
|
||||
$('.page-results', modal.body).html(data);
|
||||
ajaxifySearchResults();
|
||||
},
|
||||
error: function() {
|
||||
request = null;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue