assigns_has_many_through_relations 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dcecc6ee346ff60b3d5c0a6ad374a84f301c2c8
4
- data.tar.gz: 60c2dbbeb838b89b3227a825d8d090fea409f6de
3
+ metadata.gz: 62803ed3c056be8574084f7043063f5dfa9557c4
4
+ data.tar.gz: 2d7da24a2a4e2e3d1bb3a8f058dd19bfc96de3e2
5
5
  SHA512:
6
- metadata.gz: 9f6d1da9e0651b8cec30fab4e4c74579e3559ea83b2d5c972afe8f09b849cdc62e03872c4827821e97340a89246113e1d61b2eb1e31e71614fa40a84c425e458
7
- data.tar.gz: 1dab5c419ac3dfbb844c4077712175076fc863223d2a26ee0d530522a35c1ca2fd740ce1f4d1ffb6dfd38ccadd666d6d1910de935540468675acf5972810e723
6
+ metadata.gz: 2d453632ce9858893e3c1cc5af2555130aaca43b76bc3e4b425d01eef573c5201daca1f416879b68a2046aa7ecfa391e39cd2cdef6d3f70334514a1e36396a99
7
+ data.tar.gz: ed6e4d88463447ee8390ce6c7bf2d60ed38ac58d0e6ebb282ab495008792ce1e78290a39edbba74e0bbcccc8eff499c25880d89bc1ea44ad6e8884776f4dea75
@@ -56,4 +56,16 @@ $.fn.hideWhenNoScrollBars = function() {
56
56
  $(function() {
57
57
  $('.quick-filter').quickListFilter({ item: 'li label, li a' });
58
58
  $('.hide-when-no-scrollbars').hideWhenNoScrollBars();
59
+
60
+ // For the (Un)Assign All buttons. Will check all the options and then submit the form.
61
+ $('.check-all-boxes').click(function(e) {
62
+ e.preventDefault();
63
+
64
+ var target = this.dataset.target,
65
+ checkMe = $(target);
66
+
67
+ checkMe.attr('checked', true);
68
+ $(this).parents('form').submit();
69
+ return false;
70
+ })
59
71
  });
@@ -1,3 +1,3 @@
1
1
  module AssignsHasManyThroughRelations
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assigns_has_many_through_relations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar