diff --git a/src/scripts/tutti/2_comments.js b/src/scripts/tutti/2_comments.js index c877fc6c..067d9cd1 100644 --- a/src/scripts/tutti/2_comments.js +++ b/src/scripts/tutti/2_comments.js @@ -155,7 +155,7 @@ function loadComments(commentsUrl) commentsContainer.html(dataHtml); }) .fail(function(xhr) { - statusBarSet('error', "Couldn't load comments. Error: " + xhr.responseText, 'pi-attention', 5000); + toastr.error('Could not load comments', xhr.responseText); commentsContainer.html(' Reload comments'); }); @@ -243,9 +243,9 @@ function commentEditCancel(clicked_item, reload_comment) { var comment_html = data['properties']['content_html']; comment_container.find('.comment-content').html(comment_html); }) - .fail(function(data) { + .fail(function(xhr) { if (console) console.log('Error fetching comment: ', xhr); - statusBarSet('error', 'Error canceling.', 'pi-warning'); + toastr.error('Error canceling', xhr.responseText); }); } diff --git a/src/templates/nodes/custom/comment/list_embed.jade b/src/templates/nodes/custom/comment/list_embed.jade index 61288a6f..a14e3487 100644 --- a/src/templates/nodes/custom/comment/list_embed.jade +++ b/src/templates/nodes/custom/comment/list_embed.jade @@ -102,6 +102,7 @@ script. if (console) console.log('Error saving comment:', xhr.responseText); show_comment_button_error("Houston! Try again?"); } + toastr.error(xhr.responseText, 'Error saving comment'); }) .done(function(comment_node_id) { $button