cm-admin 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20dd363538f277075fce6205a1121d1cc7c4b2446efd4ca40672989f2b096028
4
- data.tar.gz: aac47d0f9d55366272478be2f3328b020774b5645a3f2b7567b7c3edb52490bf
3
+ metadata.gz: e262894df324aafa74d958a22a83676c9f03072549786ff879896a52d27f0eac
4
+ data.tar.gz: ab5347b2432f6e7cd8e4afb8c2c6c98cef4f29b8473ef008c8a30354af4ec25c
5
5
  SHA512:
6
- metadata.gz: ac0eeff444c884518caebc20724330a849a468112336f5c130c12a1aefd0010151c3727099b00b352457e521986ed47bbe5a0b78250e93f400bc0419140c3f18
7
- data.tar.gz: a487366a4b8a831d24586e691ecc3b98e7f98c55559dd9090e68b1e60a1ca76d5162acf699fa3e0f23d7e263583e858d4ec65bb5f6ccf389eb9d6756824914d5
6
+ metadata.gz: '0930b09997cd26896b00870d3c876659fea23fa0669537858d38953a3295361b01d2c326b0914b9249fc158c4943c693bc726fea36737293be8f50325f33a85f'
7
+ data.tar.gz: 1d11f6a2baeb4db02c4b413b8f6beb1e66e8e53e4312c2172b6466ee902a2487545d0f6242e6ad05be8ba7e3a14939a1c707c35294793eef30804dbe798cb8f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (1.5.3)
4
+ cm-admin (1.5.4)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -131,7 +131,7 @@ GEM
131
131
  method_source (1.1.0)
132
132
  mini_mime (1.1.5)
133
133
  minitest (5.18.1)
134
- net-imap (0.4.10)
134
+ net-imap (0.4.11)
135
135
  date
136
136
  net-protocol
137
137
  net-pop (0.1.2)
@@ -140,8 +140,8 @@ GEM
140
140
  timeout
141
141
  net-smtp (0.5.0)
142
142
  net-protocol
143
- nio4r (2.7.1)
144
- nokogiri (1.16.4-arm64-darwin)
143
+ nio4r (2.7.3)
144
+ nokogiri (1.16.5-arm64-darwin)
145
145
  racc (~> 1.4)
146
146
  pagy (4.11.0)
147
147
  parallel (1.22.1)
@@ -149,7 +149,7 @@ GEM
149
149
  ast (~> 2.4.1)
150
150
  pundit (2.2.0)
151
151
  activesupport (>= 3.0.0)
152
- racc (1.7.3)
152
+ racc (1.8.0)
153
153
  rack (2.2.7)
154
154
  rack-proxy (0.7.7)
155
155
  rack
@@ -245,7 +245,7 @@ GEM
245
245
  websocket-driver (0.7.6)
246
246
  websocket-extensions (>= 0.1.0)
247
247
  websocket-extensions (0.1.5)
248
- zeitwerk (2.6.13)
248
+ zeitwerk (2.6.14)
249
249
 
250
250
  PLATFORMS
251
251
  arm64-darwin-20
@@ -54,9 +54,10 @@ $(document).on('click', function(e) {
54
54
  }
55
55
  });
56
56
 
57
- $(document).on('click', '.destroy-attachment', function(e) {
58
- var ar_id = $(this).data('ar-id')
59
- $(this).addClass('hidden')
57
+ $(document).on('click', '.destroy-attachment button', function(e) {
58
+ e.preventDefault();
59
+ var ar_id = $(this).parent('.destroy-attachment').data('ar-id')
60
+ $(this).parent('.destroy-attachment').addClass('hidden')
60
61
  $(this).append('<input type="text" name="attachment_destroy_ids[]" value="' + ar_id + '"/>')
61
62
  })
62
63
 
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.5.3'
2
+ VERSION = '1.5.4'
3
3
  end
@@ -152,7 +152,7 @@ module CmAdmin
152
152
  concat attachment_with_icon(attachment)
153
153
  end
154
154
  else
155
- concat attachment_with_icon(attached) if attached
155
+ concat attachment_with_icon(attached) if attached.attached?
156
156
  end
157
157
  end
158
158
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sajinmp
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-05-21 00:00:00.000000000 Z
13
+ date: 2024-05-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: caxlsx_rails