Skip to content

Commit 474ee8c

Browse files
author
Philip Guo
committed
registered a generic AJAX error handler
1 parent 8a95b7c commit 474ee8c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎edu-python.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,5 +1192,11 @@ function eduPythonCommonInit() {
11921192
}
11931193
});
11941194

1195+
1196+
// log a generic AJAX error handler
1197+
$(window).ajaxError(function() {
1198+
alert("Uh oh, the server returned an error, boo :( Please reload and try again");
1199+
});
1200+
11951201
}
11961202

0 commit comments

Comments
 (0)