Commit 2562f54b by Braden MacDonald

Fix appearance of messages in Studio

parent 162c74e9
......@@ -67,7 +67,10 @@ class MentoringMessageBlock(XBlock, StudioEditableXBlockMixin):
def mentoring_view(self, context=None):
""" Render this message for use by a mentoring block. """
html = u'<div class="message {msg_type}">{content}</div>'.format(msg_type=self.type, content=self.content)
html = u'<div class="submission-message {msg_type}">{content}</div>'.format(
msg_type=self.type,
content=self.content
)
return Fragment(html)
def student_view(self, context=None):
......
......@@ -5,7 +5,7 @@ function MentoringEditComponents(runtime, element) {
var updateButtons = function() {
$buttons.each(function() {
var msg_type = $(this).data('boilerplate');
$(this).toggleClass('disabled', $('.xblock .message.'+msg_type).length > 0);
$(this).toggleClass('disabled', $('.xblock .submission-message.'+msg_type).length > 0);
});
};
updateButtons();
......
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