From db5a6e6560c963849f8807184ca32efee6779264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Wed, 9 Jul 2014 10:28:56 +0200 Subject: [PATCH] MDL-46223 Fix frequently used comments in the marking guide When the frequently used comment contains a character like >, re-use it directly instead of its HTML entitiy. --- grade/grading/form/guide/js/guide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grade/grading/form/guide/js/guide.js b/grade/grading/form/guide/js/guide.js index 1f1cd909d7d..09da8c4512b 100644 --- a/grade/grading/form/guide/js/guide.js +++ b/grade/grading/form/guide/js/guide.js @@ -10,7 +10,7 @@ M.gradingform_guide.init = function(Y, options) { currentfocus = e.currentTarget; }); Y.all('.markingguidecomment').on('click', function(e) { - currentfocus.set('value', currentfocus.get('value') + '\n' + e.currentTarget.get('innerHTML')); + currentfocus.set('value', currentfocus.get('value') + '\n' + e.currentTarget.get('text')); currentfocus.focus(); });