Skip to content

Commit

Permalink
MOBILE-1987 assign: Recover draft from offline on feedback comments
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Feb 28, 2017
1 parent 20c3fa2 commit 36c76f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/addons/mod/assign/feedback/comments/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ angular.module('mm.addons.mod_assign')
}).then(function(offlineData) {
if (offlineData && offlineData.plugindata && offlineData.plugindata.assignfeedbackcomments_editor) {
scope.isSent = false;
// Save offline as draft.
$mmaModAssignFeedbackCommentsHandler.saveDraft(scope.assign.id, scope.userid,
offlineData.plugindata.assignfeedbackcomments_editor);
return offlineData.plugindata.assignfeedbackcomments_editor.text;
}

Expand Down

0 comments on commit 36c76f2

Please sign in to comment.