apptamers-bootstrap 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,24 @@
|
|
1
|
+
ready = ->
|
2
|
+
$('input[type="checkbox"][data-select-all="true"], input[type="checkbox"][data-select="true"]').prop('checked', false)
|
3
|
+
|
4
|
+
$('input[type="checkbox"][data-select-all="true"]').change ->
|
5
|
+
select_all = this;
|
6
|
+
$('input[type="checkbox"][data-select="true"]').each (index, element) =>
|
7
|
+
$(element).prop('checked', $(select_all).is(':checked'))
|
8
|
+
$(element).change()
|
9
|
+
|
10
|
+
$('input[type="checkbox"][data-select="true"]').change ->
|
11
|
+
if($(this).is(':checked'))
|
12
|
+
$(this).parents('tr').addClass('selected')
|
13
|
+
else
|
14
|
+
$(this).parents('tr').removeClass('selected')
|
15
|
+
|
16
|
+
$('a[data-manage="true"]').click ->
|
17
|
+
ids = [];
|
18
|
+
$('input[type="checkbox"][data-select="true"]:checked').each (index, element) =>
|
19
|
+
ids.push($(element).val())
|
20
|
+
$.post($(this).attr('href'), {_method: $(this).data('method'), ids: ids}, null, 'script');
|
21
|
+
return false
|
22
|
+
|
23
|
+
$(document).ready ready
|
24
|
+
$(document).on('page:load', ready);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apptamers-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- LICENSE.txt
|
88
88
|
- README.rdoc
|
89
89
|
- Rakefile
|
90
|
+
- app/assets/javascripts/apptamers/bootstrap.js.coffee
|
90
91
|
- app/assets/stylesheets/apptamers/bootstrap.css.scss
|
91
92
|
- lib/apptamers-bootstrap.rb
|
92
93
|
- lib/apptamers/bootstrap.rb
|
@@ -107,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
108
|
version: '0'
|
108
109
|
segments:
|
109
110
|
- 0
|
110
|
-
hash: -
|
111
|
+
hash: -1759087889371766392
|
111
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
113
|
none: false
|
113
114
|
requirements:
|