Index: lams_tool_scratchie/web/pages/learning/results.jsp
===================================================================
diff -u -rbfe408b3fcab0b7112ec11ded9d56e374d89b7b2 -r8ab0cbbcfce07e694699a1bd81eab7cd00b57ce0
--- lams_tool_scratchie/web/pages/learning/results.jsp (.../results.jsp) (revision bfe408b3fcab0b7112ec11ded9d56e374d89b7b2)
+++ lams_tool_scratchie/web/pages/learning/results.jsp (.../results.jsp) (revision 8ab0cbbcfce07e694699a1bd81eab7cd00b57ce0)
@@ -147,16 +147,19 @@
{name:'isUserAuthor', width:0, hidden: true},
{name:'groupName', index:'groupName', width:100, title: false},
{name:'burningQuestion', index:'burningQuestion', width:501, edittype: 'textarea', title: false, editoptions:{rows:"8"},
- formatter:function(cellvalue, options, rowObject) {
+ formatter:function(cellvalue, options, rowObject, event) {
+ if (event == "edit") {
+ cellvalue = cellvalue.replace(/\n/g, '
');
+ }
var item = $(this).jqGrid("getLocalRow", options.rowId);
-
+
//when item is editable - show pencil icon on hover
return ${isUserLeader} && eval(item.isUserAuthor) ?
"" +cellvalue + " "
: cellvalue;
},
unformat:function(cellvalue, options, rowObject) {
- var text = $('