Skip to content
Snippets Groups Projects
Unverified Commit dcd33372 authored by Tim Schroeder's avatar Tim Schroeder
Browse files

fixed comment deletion in moodle39

parent dab002ae
No related branches found
No related tags found
No related merge requests found
...@@ -1842,7 +1842,10 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting ...@@ -1842,7 +1842,10 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
} else { } else {
confirmDelete = M.util.get_string('deletingComment', 'pdfannotator'); confirmDelete = M.util.get_string('deletingComment', 'pdfannotator');
} }
notification.confirm(M.util.get_string('deletingCommentTitle', 'pdfannotator'), confirmDelete, M.util.get_string('yesButton', 'pdfannotator'), M.util.get_string('cancelButton', 'pdfannotator'), dialogCallbackForDelete, null); var deleteCallback = function() {
dialogCallbackForDelete.call(this, comment)
};
notification.confirm(M.util.get_string('deletingCommentTitle', 'pdfannotator'), confirmDelete, M.util.get_string('yesButton', 'pdfannotator'), M.util.get_string('cancelButton', 'pdfannotator'), deleteCallback, null);
}); });
   
function dialogCallbackForDelete(args = comment){ function dialogCallbackForDelete(args = comment){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment