effective_bootstrap 1.18.7 → 1.19.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: e2fadb33191774f48f85f53dc2c3a24b98d885b73e686d7e6cb41d06bdd6e9c7
4
- data.tar.gz: bd46fbe4dbee25ce4e1b63c64b63cba8d751789aa0d7ab6cf1fb1776ef021d21
3
+ metadata.gz: 9afa1d831fb565c99c1b891fb5acc4251e24eb54ee807c34ebd168d68eebe3b8
4
+ data.tar.gz: 42465eed1461c1786fb5971e9472f4633c51c4e386b26de4f8cb77efd9ca5ff0
5
5
  SHA512:
6
- metadata.gz: dbaf684821074f0ca879e88c3e3cfe6a61dc583600addb0d52d9d3596472156da09ac86371ec8bd460c82bd155431673d86a4b82d8a12e22c5f4519c0df409f7
7
- data.tar.gz: ccb1286eb4a0d00aaed5642bc2c8cb77264c70e926370f2e723e9291e0af95b561406ca221833dbf7b71b7ea2159243dc6d684f27a130ce813ba028dd92eb1ff
6
+ metadata.gz: bd94d428c56c7833df84aae205225e569db9862151ec662af732e243d9de150bd4ed36e5cba688080ac7509d5b58366f6e5637efea7b546da47aae7a9b8f1055
7
+ data.tar.gz: 2152082c0558c7035b65955c13ea1d8e4fe4845c40a036c9b908f9c46922a6cc1d98e5cc19d6fa6865bcedf4993d88c7a1f83e4940acb685da12a75a743a31f2
@@ -105,8 +105,8 @@ this.EffectiveForm ||= new class
105
105
 
106
106
  # Process remote form
107
107
  if $form.length > 0
108
- try EffectiveBootstrap.initialize($form)
109
108
  $target.replaceWith($form)
109
+ try EffectiveBootstrap.initialize($form)
110
110
  else
111
111
  $form = @reset($target) # There is no remote form. So we assume success and reset the submitted one.
112
112
 
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EffectiveIframeHelper
4
+
5
+ def iframe_srcdoc_tag(srcdoc)
6
+ content_tag(
7
+ :iframe,
8
+ '',
9
+ srcdoc: srcdoc,
10
+ style: 'frameborder: 0; border: 0; width: 100%; height: 100%;',
11
+ onload: "this.style.height=(this.contentDocument.body.scrollHeight + 30) + 'px';",
12
+ scrolling: 'no'
13
+ )
14
+ end
15
+
16
+ end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.18.7'.freeze
2
+ VERSION = '1.19.1'.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: 1.18.7
4
+ version: 1.19.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: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -661,6 +661,7 @@ files:
661
661
  - app/helpers/effective_editor_helper.rb
662
662
  - app/helpers/effective_form_builder_helper.rb
663
663
  - app/helpers/effective_icons_helper.rb
664
+ - app/helpers/effective_iframe_helper.rb
664
665
  - app/helpers/effective_table_builder_helper.rb
665
666
  - app/models/effective/form_builder.rb
666
667
  - app/models/effective/form_input.rb