Page 1 of 1
show all but no 'unselect all' button
Posted: 2018-03-06 19:47
by D Oliveira
hey ive been struggling to find the .php file responsible for this button, the show all button selects all the boxes but theres no option no unselect all of them, I have 50+ fields and its annoying to go one by one, can someone help? *highlight red box* attachment
Re: show all but no 'unselect all' button
Posted: 2018-03-11 16:43
by a.gneady
Thanks for the feedback on this. We'll add a 'Hide all' button in the next release. The file that renders this menu is datalist.php ... Look for "toggle-columns-container"
Re: show all but no 'unselect all' button
Posted: 2018-03-12 20:51
by D Oliveira
can u please elaborate on that
Re: show all but no 'unselect all' button
Posted: 2018-03-13 11:59
by D Oliveira
For those who might have the same question.
1- search for id="show-all-columns" in the file datalist.php
2- add the following div code under the show all button
Code: Select all
<div class="col-md-12"><button type="button" class="btn btn-default btn-block" id="show-all-columns2"><i class="glyphicon glyphicon-remove-circle"></i> <?php echo 'Clear Fields'; ?></button></div>
3- in the bottom of the file add this other function
Code: Select all
$j('#show-all-columns2').click(function(){
$j('#toggle-columns input[type=checkbox]:checked').trigger('click');
});