effective_bootstrap 0.9.14 → 0.9.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3caddfef38f42c46b1fa8f9349a123b92cb993e49e833b2273b5feb7777a9996
|
4
|
+
data.tar.gz: '09b0e3add6de331cee37ad5d81ec5ddb91a3d226f7bd9436aff17c89d2251d64'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de8a09444cc218dde3206eeb6653a7b029529a7502e7714b0ae62c2325780290846e3fc379cd80921485e0a3fbfab08d23a7b558fd6fec9a899298b9e4bce254
|
7
|
+
data.tar.gz: 847970f4ea44074b4e374b97a0e4e89220e0d9892d18d69605372e929e1be2119f63ae67035fbcc0222b54c6a67046ce99308756e944d603ac08f6e8b80a2e03
|
@@ -48,6 +48,8 @@ $(document).on 'click', '[data-effective-form-has-many-remove]', (event) ->
|
|
48
48
|
event.preventDefault()
|
49
49
|
|
50
50
|
$obj = $(event.currentTarget)
|
51
|
+
return unless $obj.data('confirmed') if $obj.data('confirm')
|
52
|
+
|
51
53
|
$hasMany = $obj.closest('.form-has-many')
|
52
54
|
return unless $hasMany.length > 0
|
53
55
|
|
@@ -117,7 +117,7 @@ module Effective
|
|
117
117
|
fields
|
118
118
|
end
|
119
119
|
|
120
|
-
remove += link_to_remove(resource) if remove?
|
120
|
+
remove += link_to_remove(resource) if (remove? || resource.new_record?)
|
121
121
|
|
122
122
|
content_tag(:div, render_fields(content, remove), class: 'has-many-fields')
|
123
123
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.15
|
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: 2021-02-
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|