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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62803ed3c056be8574084f7043063f5dfa9557c4
|
4
|
+
data.tar.gz: 2d7da24a2a4e2e3d1bb3a8f058dd19bfc96de3e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
});
|