Issue #160: Provide Async Error Handling

Added Toast notification for unexpected errors
    On 401 and 403 Errors, user is redirected to login
This commit is contained in:
Mario Zupan
2016-12-01 19:28:28 +01:00
parent e5ed24fcf7
commit feb38eef8c
8 changed files with 160 additions and 4 deletions

View File

@ -2,17 +2,20 @@
define(['jquery',
'underscore',
'backbone',
'libs/jquery.form'],
'libs/jquery.form',
'goatApp/view/ErrorNotificationView'],
function(
$,
_,
Backbone,
JQueryForm) {
JQueryForm,
ErrorNotificationView) {
return Backbone.View.extend({
el:'#lesson-content-wrapper', //TODO << get this fixed up in DOM
initialize: function(options) {
options = options || {};
new ErrorNotificationView();
},
/* initial renering */