added generic error message handler

pull/1108/head
Justin Richer 8 years ago
parent 44313c4e10
commit 8749e1124e

@ -406,6 +406,19 @@ var ErrorHandlerView = Backbone.View.extend({
'show': true
});
}
},
showErrorMessage:function(header, message) {
$('#modalAlert').i18n();
$('#modalAlert div.modal-header').html(header);
$('#modalAlert .modal-body').html(message);
$('#modalAlert').modal({
'backdrop': 'static',
'keyboard': true,
'show': true
});
}
});

Loading…
Cancel
Save