Index: lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties,v diff -u -r1.7.2.8 -r1.7.2.9 --- lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties 16 Feb 2017 16:19:01 -0000 1.7.2.8 +++ lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties 17 Feb 2017 08:31:29 -0000 1.7.2.9 @@ -166,4 +166,5 @@ label.manage.users.description =Uncheck all learners that should not be rated by others label.removed.user.warning =The teacher has limited your ability to rate and be rated in this activity. label.user.hidden =Remove user from rating +label.hide.user.confirmation =Are you sure you want to stop rating this user? It will lead to removal of all ratings and comments left by him/her. Index: lams_tool_preview/web/pages/monitoring/manageUsers.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_preview/web/pages/monitoring/Attic/manageUsers.jsp,v diff -u -r1.1.2.1 -r1.1.2.2 --- lams_tool_preview/web/pages/monitoring/manageUsers.jsp 16 Feb 2017 16:19:01 -0000 1.1.2.1 +++ lams_tool_preview/web/pages/monitoring/manageUsers.jsp 17 Feb 2017 08:31:29 -0000 1.1.2.2 @@ -54,15 +54,19 @@ viewrecords:true, // caption: "${groupSummary.sessionName}" use Bootstrap panels as the title bar loadComplete: function() { - var table = this; // storing isHidden change to DB - $(":checkbox").change(function(){ - var userUid = $(this).parent().parent().prop('id'); - //var userUid = jQuery("#user${question.uid}").getCell(rowid, 'userUid'); - //var iRow = $("#grid").getInd($(this).parent('td').parent('tr').attr('id')); - //var iCol = $(this).parent('td').parent('tr').find('td').index($(this).parent('td')); + $(":checkbox").on("click", function(event){ + //if teacher doesn't confirm - prevent checkbox from being unchecked and do not save to DB + if (!$(this).is(":checked") && !confirm('')) { + event.preventDefault(); + event.stopPropagation(); + return false; + } + + //store to DB in case checkbox wasn't checked previously or the teacher has confirmed hiding the user + var userUid = $(this).parent().parent().prop('id'); $.ajax({ data: { toolContentID: ${sessionMap.toolContentID}, @@ -72,6 +76,7 @@ type: 'POST', url: '' }); + }); } }).jqGrid('filterToolbar', {