Sha256: 8d988d1e1af067d970802bae457aca9847eabc3a24eaad2f0da4588dea10c75a

Contents?: true

Size: 1.1 KB

Versions: 24

Compression:

Stored size: 1.1 KB

Contents

I"[(function() {
  $(function() {
    return $("[data-select-columns]").each(function() {
      return $(this).on('change', function() {
        var headers, options, table, table_selector;
        table_selector = $(this).data('select-columns-target');
        table = $(table_selector);
        headers = $(table_selector + " th");
        options = $(this).find("option");
        console.log(options);
        return options.each(function() {
          var column_index, th_id;
          th_id = $(this).attr('value');
          column_index = $(th_id).index(table_selector + " tbody tr:first th") + 1;
          console.log(column_index);
          if ($(this).is(':selected')) {
            $(table_selector + " th:nth-child(" + column_index + ")").show("slow");
            return $(table_selector + " td:nth-child(" + column_index + ")").show("slow");
          } else {
            $(table_selector + " th:nth-child(" + column_index + ")").hide("slow");
            return $(table_selector + " td:nth-child(" + column_index + ")").hide("slow");
          }
        });
      });
    });
  });

}).call(this);
:ET

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-4.2.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-4.2.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-4.2.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-4.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-4.0.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-4.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.7 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.6 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.5 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.4 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-3.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-2.2.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-2.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache
itsf_backend-2.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PSDqvVmtx2B4kGLXglnEmCJW6WzjvUBbf3mb_UrJh2k.cache