MDL-42482 assignfeedback_editpdf - prevent blank comments from disappearing when the menu is opened

This commit is contained in:
Davo Smith
2013-10-22 18:26:44 +01:00
parent 114913e31f
commit 6e67d80d50
4 changed files with 10 additions and 4 deletions
@@ -1926,6 +1926,8 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
commentlinks.all('.quicklist_comment').remove(true),
comment = this.get('comment');
comment.deleteme = false; // Cancel the deleting of blank comments.
// Now build the list of quicklist comments.
Y.each(comment.editor.quicklist.comments, function(quickcomment) {
var listitem = Y.Node.create('<li class="quicklist_comment"></li>'),
File diff suppressed because one or more lines are too long
@@ -1926,6 +1926,8 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
commentlinks.all('.quicklist_comment').remove(true),
comment = this.get('comment');
comment.deleteme = false; // Cancel the deleting of blank comments.
// Now build the list of quicklist comments.
Y.each(comment.editor.quicklist.comments, function(quickcomment) {
var listitem = Y.Node.create('<li class="quicklist_comment"></li>'),
@@ -70,6 +70,8 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
commentlinks.all('.quicklist_comment').remove(true),
comment = this.get('comment');
comment.deleteme = false; // Cancel the deleting of blank comments.
// Now build the list of quicklist comments.
Y.each(comment.editor.quicklist.comments, function(quickcomment) {
var listitem = Y.Node.create('<li class="quicklist_comment"></li>'),