Index: lams_gradebook/web/gradebookMonitorContent5.jsp
===================================================================
diff -u -r6582c67f62fe86aeb15f5b7e21b54a82952ec3d3 -r198c8a9ea2d927fdf19aa00b222831934f6af176
--- lams_gradebook/web/gradebookMonitorContent5.jsp (.../gradebookMonitorContent5.jsp) (revision 6582c67f62fe86aeb15f5b7e21b54a82952ec3d3)
+++ lams_gradebook/web/gradebookMonitorContent5.jsp (.../gradebookMonitorContent5.jsp) (revision 198c8a9ea2d927fdf19aa00b222831934f6af176)
@@ -660,27 +660,39 @@
resizeJqgrid(jQuery(".ui-jqgrid-btable:visible", this));
})
- function userNameFormatter (cellvalue, options, rowObject) {
- return definePortraitPopover(rowObject[8].innerHTML, rowObject.id, cellvalue, cellvalue, true);
- }
- // Combine portraits with activityURL. Both are optional so it is mix and match.
- function userNameFormatterActivity (cellvalue, options, rowObject) {
- var portProcessed = definePortraitPopover(rowObject[9].innerHTML, rowObject.id, cellvalue, cellvalue, true);
- if ( rowObject.children.length > 10 && rowObject[10].innerHTML.length > 0 ) {
- var activityURL = rowObject[10].innerHTML;
- if ( portProcessed.indexOf('"+cellvalue+"";
- }
- }
- return portProcessed;
- }
-
setTimeout(function(){ window.dispatchEvent(new Event('resize')); }, 300);
+
+ $("#userView, #activityView").bind("jqGridAfterGridComplete", function () {
+ let grid = $(this),
+ expandedGridIds = grid.data('expandedGridIds');
+ $(this).data('expandedGridIds', null);
+ if (expandedGridIds) {
+ $(expandedGridIds).each(function(index, id){
+ grid.jqGrid('expandSubGridRow', id);
+ });
+ }
+ });
});
+
+ function userNameFormatter (cellvalue, options, rowObject) {
+ return definePortraitPopover(rowObject[8].innerHTML, rowObject.id, cellvalue, cellvalue, true);
+ }
+
+ // Combine portraits with activityURL. Both are optional so it is mix and match.
+ function userNameFormatterActivity (cellvalue, options, rowObject) {
+ var portProcessed = definePortraitPopover(rowObject[9].innerHTML, rowObject.id, cellvalue, cellvalue, true);
+ if ( rowObject.children.length > 10 && rowObject[10].innerHTML.length > 0 ) {
+ var activityURL = rowObject[10].innerHTML;
+ if ( portProcessed.indexOf('"+cellvalue+"";
+ }
+ }
+ return portProcessed;
+ }