Bootstrap Dual list

Regarding: bootsnipp.com/snippets/featured/bootstrap-dual-list

Hello, just FYI, when using the search box, having selected items, then moving them across and removing the search filter makes the "filtered" entries disappear. To correct this I just add to add the following :

$('[name="SearchDualList"]').keyup(function (e) {

….

….

var $rows = $(this).closest('.dual-list').find('.list-group li');

/this is the new line to unselect all entries / $rows.removeClass('selected').closest('.well').find('ul li.active').removeClass('active');

……

}

But in any case thanks a lot for this very helpful snippet !!!

Cheers

dotorg-app (1) - 5 years ago - Reply 1