Commit 56a92bff by David Baumgold

Hook up CMS.ServerError to new alerting system

parent 40000a3a
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();
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment