effective_datatables 4.12.0 → 4.13.1

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: 42b5024f89eb0023d4726035fd8312fae684f291cc108ca3adfb16bdf830aac5
4
- data.tar.gz: 411a3ec031d8ec63b7f12fa71d71ba5aa50743b24c145d494d814e77081aea40
3
+ metadata.gz: d9144f742099923e8f4029b91ec95f0f72a7448a885d60f1c26512fe84740af3
4
+ data.tar.gz: 75d5118016122bb723098f3b42c1110b4029b9f8485a16fdb6cf0bc6a13ae538
5
5
  SHA512:
6
- metadata.gz: 9b14bbea43b5c06f24cec46c1ffbee82dc86806deefc0bd81dc74f12dd73a850004b4dac59dac83fd24fe69a4cf75b281a2f498b4752035d4a13d2be2ef1c07c
7
- data.tar.gz: 2cbf3ed396bb3be677531d02220de5fa1952ea01c481c7ffb426429de9ed0050a65923debfba606cbe0344f57ebe79fe33f1ef464b13959140dc2ce0c5bf020f
6
+ metadata.gz: 50b2cfbf7a71f94dd61e1891bae7688b974c14e072577c408a1ca17e064e8ff1885b76643eb5efaf6df1b9ceaa8fe2a51ce3587c4ec6cfc8478cb6e3fbc73514
7
+ data.tar.gz: a702fed36f9a6a2fc489c3f8dd9367f6390f7b20b5f1d0a3a6cc7fda8b07957da376d8bf5795037b3e70f072c1fd278563c5fab0e478d827285af2aa5e16bd37
@@ -208,3 +208,5 @@ $(document).on 'page:change', -> initializeDataTables()
208
208
  $(document).on 'turbolinks:load', -> initializeDataTables()
209
209
  $(document).on 'turbolinks:render', -> initializeDataTables()
210
210
  $(document).on 'turbolinks:before-cache', -> destroyDataTables()
211
+ $(document).on 'turbo:load', -> initializeDataTables()
212
+ $(document).on 'turbo:before-cache', -> destroyDataTables()
@@ -93,7 +93,7 @@ module Effective
93
93
  collection.select! do |row|
94
94
  obj = row[index]
95
95
  value = obj_to_value(row[index], column, row)
96
- next if value.blank?
96
+ next if value.nil? || value == ''
97
97
 
98
98
  case column[:as]
99
99
  when :boolean
@@ -10,14 +10,14 @@ module Effective
10
10
  return @_datatables_ajax_request unless @_datatables_ajax_request.nil?
11
11
  return unless view.respond_to?(:params)
12
12
 
13
- @_datatables_ajax_request = (view.present? && view.params.key?(:draw) && view.params.key?(:columns))
13
+ @_datatables_ajax_request = (view.params.key?(:draw) && view.params.key?(:columns))
14
14
  end
15
15
 
16
16
  def datatables_inline_request?
17
17
  return @_datatables_inline_request unless @_datatables_inline_request.nil?
18
18
  return unless view.respond_to?(:params)
19
19
 
20
- @_datatables_inline_request = (view.present? && view.params[:_datatable_id].to_s.split('-')[0...-1] == to_param.split('-')[0...-1])
20
+ @_datatables_inline_request = (view.params[:_datatable_id].to_s.split('-')[0...-1] == to_param.split('-')[0...-1])
21
21
  end
22
22
 
23
23
  def params
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.12.0'.freeze
2
+ VERSION = '4.13.1'.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.12.0
4
+ version: 4.13.1
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: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails