Sha256: 3e3ea2da31c473915efafd10f69ad8638108ed835c4f56403c822d11936de24b

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

$(document).ready(function() {
  // select all
  $("a[href='#select_all']").click(function() {
    $(".resources-list input[type='checkbox']").attr('checked', true);
  });

  $("a[href='#select_none']").click(function() {
    $(".resources-list input[type='checkbox']").attr('checked', false);
  });

  $("a[href='#invert_selection']").click(function() {
    $(".resources-list input[type='checkbox']").each(function() {
      $(this).attr('checked', !$(this).attr('checked'));
    });
  });
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_clean-1.0.7 app/assets/javascripts/admin/clean_data/show.js
spree_clean-1.0.6 app/assets/javascripts/admin/clean_data/show.js
spree_clean-1.0.5 app/assets/javascripts/admin/clean_data/show.js
spree_clean-1.0.4 app/assets/javascripts/admin/clean_data/show.js