Commit 87858896 by Julia Hansbrough

Merge pull request #1446 from edx/flowerhack/fix/legacyemailjs

Fixed a bug where legacy instructor dash's email editor failed to load
parents c1c29861 91231860
......@@ -546,11 +546,13 @@ function goto( mode)
<input type="submit" name="action" value="Send email">
</div>
<script type="text/javascript">
var emailEditor = XBlock.initializeBlock($('.xblock-studio_view'));
document.idashform.onsubmit = function() {
this.message.value = emailEditor.save()['data'];
return true;
}
$(document).ready(function(){
var emailEditor = XBlock.initializeBlock($('.xblock-studio_view'));
document.idashform.onsubmit = function() {
this.message.value = emailEditor.save()['data'];
return true;
}
});
</script>
<p>These email actions run in the background, and status for active email tasks will appear in a table below.
......
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