Skip to content

Commit 20e4c1c

Browse files
committed
render html error output from ajax
1 parent dad50e7 commit 20e4c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webroot/js/messages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ $(document).ready(function () {
1818
'title': button.data('title'),
1919
'body': button.data('body')
2020
},
21-
error: function () {
22-
console.log(`failed to delete message ${JSON.stringify(button.data())}`);
21+
error: function (result) {
22+
$("#messages").append(result.responseText);
2323
}
2424
});
2525
hideClearAllMessagesButtonIfAllMessagesAlreadyCleared();

0 commit comments

Comments
 (0)