Index: lams_central/web/qb/collection.jsp
===================================================================
diff -u -r0eb673cae894e38f77a6470467da5f26111b3862 -r33b937e6fb979aa7a58fd0f33d1ecf474150155b
--- lams_central/web/qb/collection.jsp (.../collection.jsp) (revision 0eb673cae894e38f77a6470467da5f26111b3862)
+++ lams_central/web/qb/collection.jsp (.../collection.jsp) (revision 33b937e6fb979aa7a58fd0f33d1ecf474150155b)
@@ -125,13 +125,11 @@
// if no questions are selected, buttons to manipulate them get disabled
buttons = grid.closest('.ui-jqgrid').siblings('.container-fluid').find('.questionButtons .btn'),
// cell containing "(de)select all" button
- selectAllCell = grid.closest('.ui-jqgrid-view').find('.jqgh_cbox > div'),
- included = grid.data('included');
+ selectAllCell = grid.closest('.ui-jqgrid-view').find('.jqgh_cbox > div');
// remove the default button provided by jqGrid
$('.cbox', selectAllCell).remove();
// create own button which follows own rules
var selectAllCheckbox = $('')
- .prop('checked', included === null)
.prependTo(selectAllCell)
.change(function(){
// start with deselecting every question on current page
@@ -156,6 +154,8 @@
loadComplete : function(){
var grid = $(this),
gridView = grid.closest('.ui-jqgrid-view');
+ grid.data('excluded', null);
+ grid.data('included', []);
// remove checkbox next to search bar
$('tr.ui-search-toolbar .cbox', gridView).remove();
@@ -169,9 +169,6 @@
alert("Error!");
}
}).jqGrid('filterToolbar');
-
-
- collectionGrid.data('included', []);
});
});
@@ -189,14 +186,29 @@
$.ajax({
'url' : '