Skip to content
Snippets Groups Projects
Commit 58358b55 authored by juanf's avatar juanf
Browse files

SSDM-9537 : Bugfix for lost selection of items across pages

parent 8d4502ee
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,13 @@ $.extend(Grid.prototype, {
sortable : false,
render : function(data) {
var $checkbox = $("<input>", { type : 'checkbox' , class: "repeater-checkbox multi-selectable-checkbox"});
for(var idx = 0; idx < _this.selectedItems.length; idx++) {
if(_this.selectedItems[idx].permId === data.$object.permId) {
$checkbox.prop('checked', true);
}
}
$checkbox.change(function() {
var isChecked = $(this).is(":checked");
if(isChecked){ //add data to selectedItems
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment