We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20c3fa2 + 36c76f2 commit 7e891ceCopy full SHA for 7e891ce
www/addons/mod/assign/feedback/comments/directive.js
@@ -36,6 +36,9 @@ angular.module('mm.addons.mod_assign')
36
}).then(function(offlineData) {
37
if (offlineData && offlineData.plugindata && offlineData.plugindata.assignfeedbackcomments_editor) {
38
scope.isSent = false;
39
+ // Save offline as draft.
40
+ $mmaModAssignFeedbackCommentsHandler.saveDraft(scope.assign.id, scope.userid,
41
+ offlineData.plugindata.assignfeedbackcomments_editor);
42
return offlineData.plugindata.assignfeedbackcomments_editor.text;
43
}
44
0 commit comments