Index: lams_central/web/qb/collection.jsp
===================================================================
diff -u -r40f16843e6c7aa476ebdcc7250dd4ac625167a01 -r666a01da9d0d2b4482ca00041527739b5e56b9f2
--- lams_central/web/qb/collection.jsp (.../collection.jsp) (revision 40f16843e6c7aa476ebdcc7250dd4ac625167a01)
+++ lams_central/web/qb/collection.jsp (.../collection.jsp) (revision 666a01da9d0d2b4482ca00041527739b5e56b9f2)
@@ -99,6 +99,9 @@
height: "100%",
autowidth:true,
shrinkToFit: true,
+ <%-- Do not allow batch removing questions from the public collection --%>
+ multiselect: !isPublicCollection,
+ multiPageSelection: !isPublicCollection,
viewrecords: true,
cellEdit: false,
cmTemplate: { title: false, search: false },
@@ -133,7 +136,7 @@
],
beforeSelectRow: function(rowid, e) {
// do not select rows at all
- return false;
+ return !isPublicCollection;
},
loadComplete: function(data) {
//init thickbox
@@ -407,6 +410,31 @@
$(document.body).append(form);
form.submit();
}
+
+
+ function removeQuestions(){
+ let questionsToRemove = $('#collection-grid').jqGrid('getGridParam','selarrrow');
+ if (questionsToRemove.length == 0){
+ return;
+ }
+ $.ajax({
+ 'url' : '