Sha256: e2c3c201d7211d70dbf523e0a7d51c211b56703fe400033b35e79124666f0d66
Contents?: true
Size: 959 Bytes
Versions: 24
Compression:
Stored size: 959 Bytes
Contents
I"³(function() { $(function() { return $("[data-select-columns]").each(function() { return $(this).on('change', function() { var headers, not_selected, selected, table, table_selector; table_selector = $(this).data('select-columns-target'); table = $(table_selector); headers = $(table_selector + " th"); selected = $(this).find(":selected"); not_selected = $(this).find(":not(:selected)"); console.log(headers); console.log(selected); console.log(not_selected); return selected.each(function() { var column_index, header_row, th_id; th_id = $(this).attr('value'); header_row = $(table_selector + " tbody tr:first"); console.log(header_row); column_index = $(table_selector + " tbody tr:first th").index(th_id); return console.log(column_index); }); }); }); }); }).call(this); :ET
Version data entries
24 entries across 24 versions & 1 rubygems