Index: lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties
===================================================================
diff -u -r88b7dcb4a13d6997f86da1f2f0650abe3d3c3644 -r91e775fa4bc9b474b6b66525ff94896cd469747b
--- lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 88b7dcb4a13d6997f86da1f2f0650abe3d3c3644)
+++ lams_tool_preview/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 91e775fa4bc9b474b6b66525ff94896cd469747b)
@@ -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
===================================================================
diff -u -r88b7dcb4a13d6997f86da1f2f0650abe3d3c3644 -r91e775fa4bc9b474b6b66525ff94896cd469747b
--- lams_tool_preview/web/pages/monitoring/manageUsers.jsp (.../manageUsers.jsp) (revision 88b7dcb4a13d6997f86da1f2f0650abe3d3c3644)
+++ lams_tool_preview/web/pages/monitoring/manageUsers.jsp (.../manageUsers.jsp) (revision 91e775fa4bc9b474b6b66525ff94896cd469747b)
@@ -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', {