effective_datatables 4.3.10 → 4.3.11

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: a2e79c3aee191317391bd99e89b942fcdbeab3d8
4
- data.tar.gz: da4378c6d6ea2abe3b8599e6f7c265ecd3ff9740
3
+ metadata.gz: 757e9b2a23e793cd4a23f256081e934158382470
4
+ data.tar.gz: 07384269bfde4ec6ee093dc9daf12ada59a9bbde
5
5
  SHA512:
6
- metadata.gz: 5578434dbcfaabd0afb207b0bc6ba1e45622da78dbe5848659367f039ddb9bb387505abbe0eeabfdc49c00d2565362d3afe532b81bf63ba856287c9f0bd206df
7
- data.tar.gz: addf9df90187cbd2572568acbb34b0d4038075f3e894049ae2824074047a77f6da76130fe29f84e8639ee8b318da10a3b64191547566d2f5e7c62e15c21eeb5b
6
+ metadata.gz: c103ba1ed623dc9d2dfeae8c690832e1430e6c552e19fafacfb7ce2ca405ecb87a9fa0fbfb494c3e3145e0076f5db8e5fc3ddc64b3d2ac679dc81a67b0901b5b
7
+ data.tar.gz: b5565e1159345988e29de498933e4e372f72a74d219052a0b2a67257df8adbbb77e1c1d7e4ae6dc9f0ee73bd96fd9595c5544ac95efe7dd22795f93b97066ea9
@@ -121,7 +121,12 @@ afterEdit = ($action) ->
121
121
  # This is when one of the resource actions completes
122
122
  afterAction = ($action) ->
123
123
  $table = $action.closest('table')
124
- $table.DataTable().flash('Successful ' + $action.attr('title')).draw()
124
+
125
+ if EffectiveForm.remote_form_flash.length > 0
126
+ flash = EffectiveForm.remote_form_flash[0]
127
+ $table.DataTable().flash((if flash[0] == 'danger' then 'Error:' else "#{flash[0]}:") + ' ' + flash[1]).draw()
128
+ else
129
+ $table.DataTable().flash('Successfully ' + $action.attr('title')).draw()
125
130
 
126
131
  buildRow = (length, payload) ->
127
132
  "<td class='col-inline-form' colspan='#{length-1}'><div class='container'>#{payload}</div></td>" +
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.3.10'.freeze
2
+ VERSION = '4.3.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.10
4
+ version: 4.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-16 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails