Fix #1325 + default ajax config: show/hide spinner and display error alerts

Fix #1325