Commit 52b10df8 by Brian Talbot Committed by David Baumgold

studio - revises copy of server error notification to include a default message…

studio - revises copy of server error notification to include a default message and removes associated actions from notifications
parent a0a71c0d
......@@ -67,22 +67,14 @@
<script src="${static.url('js/models/feedback.js')}"></script>
<script src="${static.url('js/views/feedback.js')}"></script>
<script type="text/javascript">
$(document).ajaxError(function(event, jqXHR, ajaxSettings, thrownError) {
var msg = new CMS.Models.ErrorMessage({
"title": gettext("Server Error"),
"message": jqXHR.responseText,
"actions": {
"primary": {
"text": "Dismiss",
"click": function(view) {
view.hide();
}
}
}
});
new CMS.Views.Notification({model: msg});
return msg;
})
$(document).ajaxError(function(event, jqXHR, ajaxSettings, thrownError) {
var msg = new CMS.Models.ErrorMessage({
"title": gettext("Studio's having trouble saving your work"),
"message": jqXHR.responseText || gettext("This may be happening because of an error with our server or your internet connection. Try refreshing the page or making sure are online.")
});
new CMS.Views.Notification({model: msg});
return msg;
})
</script>
<!-- view -->
......
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