clark_kent 0.10.1 → 0.10.2

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
  SHA256:
3
- metadata.gz: b17161b041898f9405165e9d32fc8801f8b1f2584bb0e978260f8f4c2d49d572
4
- data.tar.gz: f3da4ca991ecb761f701f74a27ee7055c307022a87d5a90599f77bda9ca94f73
3
+ metadata.gz: cbf3313f9e29e87b92ae0164acca19ef853c20dcd5f56e026d7c1a4b0d95feef
4
+ data.tar.gz: e01e46a4d22389e43d2293ea2685e8d37dce4f6c673a4938dd38fda668eecd70
5
5
  SHA512:
6
- metadata.gz: d376254eb1ba23855f3ed32e161d24ee119c3e39bd7b51701debd652ed89e3e474fe40657410afeb94afd72d72fbaf21e34f55539a1ce98f5a220302911203a4
7
- data.tar.gz: 871b663ab97c1a01d0bc8f7c6d1842ce142f857320f01e50d6b690652149990b4ffa1d1665dbef9c95a661d08ca531a1f9caea5f48799fca5900d26b1fe48143
6
+ metadata.gz: 859816b3ab0e3df20810639b7747c4f5376d01fd5a8ab22c7d5798149b27b168e072e6a14054ee13d7c435f2d1904decbe02d33bf02c2f58e2c704624b699384
7
+ data.tar.gz: e07dc2914b3a78a80a7409fa40938855bbb3335565602a4331eb221c644ebb2d3756c72e137de3159c15f66d597a0d4f5842e2ee3af81349e65f447d08235542
@@ -69,7 +69,7 @@ module ClarkKent
69
69
  def print_button(rows, from_modal=false)
70
70
  if rows
71
71
  onclick_str = "window.print()"
72
- onclick_str.prepend("$('#print_report_modal').modal('hide');") if from_modal
72
+ onclick_str.prepend("$('#hooch-dismiss').click();") if from_modal
73
73
  link_to 'Print',
74
74
  'javascript:void(0)',
75
75
  class: 'btn',
@@ -1,26 +1,13 @@
1
1
  <% if rows %>
2
2
  <% if rows.total_count > 50 %>
3
- <%= link_to 'Print',
4
- 'javascript:void(0)',
5
- onclick: "$('#print_report_modal').modal('show');",
6
- class: 'btn'
7
- %>
8
- <div id="print_report_modal" class="modal hide fade">
9
- <div class="modal-header">
10
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
11
- &nbsp;
12
- </div>
13
- <div class="modal-body">
14
- <p> You will only be printing the current page of results (<%= @report.resource_class.default_per_page %> of <%= @rows.total_count %> total results).
15
- To print all results click the <strong>download full csv</strong> link at the bottom of the page.</p>
16
- <div class="row-fluid" >
17
- <div class="span8"></div>
18
- <div class="span1">
19
- <%= print_button(@rows, true) %>
20
- </div>
21
- <div class="span1">
22
- <button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
23
- </div>
3
+ <div <%= modal_trigger("#print_report_modal", dismissable: true) %> class="link"> Print </div>
4
+ <div id="print_report_modal" class="hidden">
5
+ <p> You will only be printing the current page of results (<%= @report.resource_class.default_per_page %> of <%= @rows.total_count %> total results).
6
+ To print all results click the <strong>download full csv</strong> link at the bottom of the page.</p>
7
+ <div class="row-fluid" >
8
+ <div class="span8"></div>
9
+ <div class="span1">
10
+ <%= print_button(@rows, true) %>
24
11
  </div>
25
12
  </div>
26
13
  </div>
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clark_kent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-26 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails