{:uriI"file:///home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts/itsf/backend/application/select-columns.coffee?type=application/javascript&pipeline=self&id=33c1a09ba641f5e3632901b4f61bd350fd3458f94b3c97b8bc02e22a5b27c0cb:ET:load_pathI"A/home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts;T: filenameI"p/home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts/itsf/backend/application/select-columns.coffee;T: nameI",itsf/backend/application/select-columns;T:logical_pathI"4itsf/backend/application/select-columns.self.js;T:content_typeI"application/javascript;T: sourceI"C(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, th_id; th_id = $(this).attr('value'); column_index = $(table_selector + " tbody tr:first").index(th_id); return console.log(column_index); }); }); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"~file-digest:///home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts/itsf/backend/application/select-columns.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%VE4^m/kˌ0J u: lengthiC:dependencies_digest"%!Zw)