Skip to content

Commit

Permalink
Merge pull request #947 from crazyserver/MOBILE-1987
Browse files Browse the repository at this point in the history
MOBILE-1987 assign: Recover draft from offline on feedback comments
  • Loading branch information
jleyva authored Feb 28, 2017
2 parents 20c3fa2 + 36c76f2 commit 7e891ce
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 7e891ce

Please sign in to comment.