Check/uncheck checkboxes for all rows in the table
               $('input[type="checkbox"]', rows).prop('checked', this.checked);
               count_checks();
            });

            $('#wanted_table tbody').on('click', 'input[type="checkbox"]', function(e){
                var chkboxes = Array.from(document.getElementsByName("issueid[]").values());

                if (!lastChecked) {
                    lastChecked = this;
                } else {
                    if (e.shiftKey) {
            