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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 757e9b2a23e793cd4a23f256081e934158382470
|
4
|
+
data.tar.gz: 07384269bfde4ec6ee093dc9daf12ada59a9bbde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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>" +
|
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.
|
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-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|