Checkbox List With Filtering jQuery Widget
This is an alternative for "Checkbox List With Filtering jQuery Widget"
Introduction
The following modifications are about making the widget work correctly in jQuery 10+ versions. I found that in jQuery 10.10.1, the Check All functionality didn't work.
Using the code
The only code modifications that I made were in the jquery.ui.checkList.js file, the only thing that I changed was:
var chkAll = $('<input/>').attr('type','checkbox').addClass('chkAll').click(function(){
var state = $(this).attr('checked');
var setState = false;
setState = (state==undefined) ? false : true;
o.objTable.find('.chk:visible').attr('checked', setState);
self._selChange();
});
by this:
var chkAll = $('<input/>').attr('type','checkbox').addClass('chkAll').click(function(){
var state = $(this).prop('checked');
o.objTable.find('.chk:visible').attr('checked', state);
self._selChange();
});
and now works!