tabulatr2 0.9.44 → 0.9.46

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: da21cb12d7978ecea6910cfd2f8b7bb11c29460188ef9f74b67ff39254bcf09d
4
- data.tar.gz: 8180c80ce2a939080bd265de2cb917627b90bcdb981b39663e9e05f43c3c952c
3
+ metadata.gz: f41f421f2b5c05c35dc912a034b114706e2281d52441f78441c9c3fadb09557f
4
+ data.tar.gz: bb97bea3acf941cff212cc230cad2befcef4bcc6be21654c22e9a0307fe16905
5
5
  SHA512:
6
- metadata.gz: 23097f23fac288be8147a1683f0a86a09f84945ef0c740746e5f673adf485acc906442171c4101af75212bd141c722187deb3b6603f3ea80141482334b3a25c8
7
- data.tar.gz: 6e759668be381e68306ecdfe6b4a5216d6b3fdc7471894237e2f6536a4dbaf3fd30073d3f329cc2fac16d5ba1fbe581ad6b02a6a0057869d0384a668af5d4454
6
+ metadata.gz: 1bce2f2d71ce8dbf4f49efffc567ad2d828dddde65a9e4fa1507636cfcbfa358c96dd5ad32321b840c8272ba1e5207d17c48929ab48576eead97bb4e316ed014
7
+ data.tar.gz: a47a5311d2b87de12ac9fbb112cc26c18c2ef6e60a6404e82e5d2b558d7359580935f3f54a8aa06c2d4d5cf401dc97bbe4ca09495856a89333b1429e56128fa8
@@ -263,8 +263,8 @@ $(document).on('change', 'select[data-tabulatr-date-filter]', function() {
263
263
  var option = select.find('option:selected');
264
264
  var val = option.val();
265
265
  if (val === 'from_to') {
266
- select.parents('.tabulatr-filter-row').find(".from_to").show().removeClass('hidden');
266
+ select.parents('.form-group').find(".from_to").show().removeClass('hidden');
267
267
  } else {
268
- select.parents('.tabulatr-filter-row').find(".from_to").hide().val('');
268
+ select.parents('.form-group').find(".from_to").hide().val('');
269
269
  }
270
270
  });
@@ -84,7 +84,7 @@ module Tabulatr::Data::Filtering
84
84
  when 'this_month' then date_in_between(today.at_beginning_of_month.beginning_of_day,
85
85
  today.at_end_of_month.end_of_day, n)
86
86
  when 'last_30_days' then date_in_between((today - 29.day).beginning_of_day, today.at_end_of_day, n)
87
- when 'from_to' then date_in_between((Date.parse(cond['from']) rescue nil), (Date.parse(cond['to']) rescue nil), n)
87
+ when 'from_to' then date_in_between((Time.zone.parse(cond['from']) rescue nil), (Time.zone.parse(cond['to']) rescue nil), n)
88
88
  end
89
89
  end
90
90
 
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.9.44"
25
+ VERSION = "0.9.46"
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulatr2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.44
4
+ version: 0.9.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Horn
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-03 00:00:00.000000000 Z
13
+ date: 2024-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.0.8
282
+ rubygems_version: 3.1.4
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: A tight DSL to build tables of ActiveRecord models with sorting, pagination,