Hook up CMS.ServerError to new alerting system
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
CMS.ServerError = function(model, error) {
|
||||
// this handler is for the client:server communication not the validation errors which handleValidationError catches
|
||||
window.alert("Server Error: " + error.responseText);
|
||||
var m = new CMS.Models.Alert({
|
||||
"type": "error",
|
||||
"title": "Server Error",
|
||||
"message": error.responseText,
|
||||
"close": true
|
||||
});
|
||||
new CMS.Views.Alert({model: m}).render();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user