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