diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d9c80a04ff..69522b0584 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,8 @@ These are notable changes in edx-platform. This is a rolling list of changes, in roughly chronological order, most recent first. Add your entries at or near the top. Include a label indicating the component affected. +LMS: Add a user-visible alert modal when a forums AJAX request fails. + Blades: Add template for checkboxes response to studio. BLD-193. Blades: Video player: diff --git a/common/static/coffee/src/discussion/utils.coffee b/common/static/coffee/src/discussion/utils.coffee index fd31188774..73cfde8a06 100644 --- a/common/static/coffee/src/discussion/utils.coffee +++ b/common/static/coffee/src/discussion/utils.coffee @@ -87,6 +87,32 @@ class @DiscussionUtil "notifications_status" : "/notification_prefs/status" }[name] + @discussionAlert: (header, body) -> + if $("#discussion-alert").length == 0 + alertDiv = $("