effective_bootstrap 1.19.0 → 1.19.2
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: 30ed0755d71e2507d659e3b3c0a4fe94f5aa87cdd28b18b98e00ac355d18b317
|
4
|
+
data.tar.gz: '0423308054e7ac0369dc1d980c02d108ad938990dc9e02fc0b036f2df1fa91bb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cd32bb7192b96ac9349d0451749bff769ff93b48772b2f0d1ba508091410bd276eccce7b884f5855fb5d8b5ecdc2c1b79c349433bdeb5a62a487f8c772549b2
|
7
|
+
data.tar.gz: 1d0ec5d073cc37811ac8ee38e524bdf4311eacd1a745c3719db38453f16526757d865fb704a564fcf51e4660e337cd4ccc2c1c91eae487a88d4428b2f9df8062
|
@@ -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
|
@@ -367,7 +367,7 @@ module Effective
|
|
367
367
|
if readonly?
|
368
368
|
options[:input][:readonly] = 'readonly'
|
369
369
|
|
370
|
-
|
370
|
+
if options[:input][:class].to_s.include?('form-control-plaintext') == false && options[:input][:plaintext] != false
|
371
371
|
options[:input][:class] = (options[:input][:class] || '').sub('form-control', 'form-control-plaintext')
|
372
372
|
end
|
373
373
|
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.19.
|
4
|
+
version: 1.19.2
|
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-
|
11
|
+
date: 2024-08-20 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
|