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: e313590d625cda7f01ce3ef74c94b204bd8459dc59d7d416dae88766756307bc
4
- data.tar.gz: a16aea2233b4a3ad497017b73383af5223fcf1b112670135ed900eff7266a115
3
+ metadata.gz: 3caddfef38f42c46b1fa8f9349a123b92cb993e49e833b2273b5feb7777a9996
4
+ data.tar.gz: '09b0e3add6de331cee37ad5d81ec5ddb91a3d226f7bd9436aff17c89d2251d64'
5
5
  SHA512:
6
- metadata.gz: 7d805f8d09225797f736d6fb82d762b0f592eeeda68fb02a0e3769675deea349dae569c3081bbdbfa52944156af3500a2b56007fc6f9bb4b79ce6f9d3fdfe987
7
- data.tar.gz: dd2d509c84b4eea2fac7135ed105cb7971fe4a7a4c59b85a084fe2463627145a751eaa4b43d3a1101e1ab3af5244544d86bac05f7efed1f5846bc5664f122843
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
@@ -1,6 +1,11 @@
1
1
  module Effective
2
2
  module FormInputs
3
3
  class TextField < Effective::FormInput
4
+
5
+ def input_html_options
6
+ { class: 'form-control', maxlength: 255, id: tag_id }
7
+ end
8
+
4
9
  end
5
10
  end
6
11
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.9.14'.freeze
2
+ VERSION = '0.9.15'.freeze
3
3
  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.14
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-19 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails