Index: lams_gradebook/web/gradebookMonitorContent5.jsp =================================================================== diff -u -rdbf0e1b0166c2775c61814fcc3de1d1a1c4d5516 -r3ad1f24fbe6a8b105138f400d04b03c8989d75cf --- lams_gradebook/web/gradebookMonitorContent5.jsp (.../gradebookMonitorContent5.jsp) (revision dbf0e1b0166c2775c61814fcc3de1d1a1c4d5516) +++ lams_gradebook/web/gradebookMonitorContent5.jsp (.../gradebookMonitorContent5.jsp) (revision 3ad1f24fbe6a8b105138f400d04b03c8989d75cf) @@ -205,7 +205,7 @@ if (cellname == "mark") { var rowData = jQuery("#"+subgrid_table_id).getRowData(rowid); - var string = removeHTMLTags(rowData["mark"]); + var string = removeHTMLTags(value); if (string.indexOf("-") != -1) @@ -228,7 +228,7 @@ } }, beforeSaveCell: function(rowid, cellname,value, iRow, iCol){ - value = trim(value); + value = value ? value.trim() : value; if (cellname == "mark") { if (value == "") { @@ -548,7 +548,7 @@ } }, beforeSaveCell: function(rowid, cellname,value, iRow, iCol){ - value = trim(value); + value = value ? value.trim() : value; if (cellname == "mark") { if (value == "") { Index: lams_monitoring/web/includes/javascript/monitorLesson5.js =================================================================== diff -u -r5030450523925f47b18e3f91bc833cf023a3de44 -r3ad1f24fbe6a8b105138f400d04b03c8989d75cf --- lams_monitoring/web/includes/javascript/monitorLesson5.js (.../monitorLesson5.js) (revision 5030450523925f47b18e3f91bc833cf023a3de44) +++ lams_monitoring/web/includes/javascript/monitorLesson5.js (.../monitorLesson5.js) (revision 3ad1f24fbe6a8b105138f400d04b03c8989d75cf) @@ -3065,4 +3065,10 @@ printWindow.print(); printWindow.close(); }, 100); +} + +// Removes html tags from a string +function removeHTMLTags(string) { + var strTagStrippedText = string.replace(/<\/?[^>]+(>|$)/g, ""); + return strTagStrippedText; } \ No newline at end of file