nfg_ui 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/nfg_ui/select2.coffee +7 -3
- data/lib/nfg_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 852acec67711b83dd400fd024cae6149a2f2e90d1adf16a41034b52f18d2d55b
|
4
|
+
data.tar.gz: b6ad3c08dff17f5c84f0f8cd2fbb7639c2ca25a0f68eaebf3bc4a20607ff04f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3322a9dff7beff9a10c55da207c9a26b8279798f6d88583a7b1d91a16743f87831ce1541d6b8fba4c1d1bdf4f29ab7ea71239a45fffb976cf0e1694063e4b1c8
|
7
|
+
data.tar.gz: f49b3d5170957d8a3e048698559939490ceb263e471b4ee30526b84a5623c4dab81e5ea6c52c1c9d40015576ba19b0574ebeb961dce3ce8207a9b47e522703ec
|
@@ -1,11 +1,15 @@
|
|
1
1
|
init_plugin = (parent) ->
|
2
2
|
return unless $('select.select2').length
|
3
|
-
|
3
|
+
|
4
4
|
# Just incase anything's changed, refresh select2 via triggering a 'change' event
|
5
5
|
parent.find('select.select2').trigger 'change'
|
6
6
|
|
7
7
|
parent.find('select.select2').select2
|
8
|
-
|
8
|
+
# Find the explicit parent to help resolve issues
|
9
|
+
# with Safari where setting $('body') caused the
|
10
|
+
# page to jump to the bottom when interacting
|
11
|
+
# with the select2 menu.
|
12
|
+
dropdownParent: parent.find('select.select2').parent()
|
9
13
|
|
10
14
|
$ ->
|
11
15
|
doc = $(document)
|
@@ -13,7 +17,7 @@ $ ->
|
|
13
17
|
modal = $('.modal')
|
14
18
|
|
15
19
|
init_plugin body
|
16
|
-
|
20
|
+
|
17
21
|
# use 'shown' tense on modal event
|
18
22
|
# otherwise, no guarantee that the select menu will be on the page yet
|
19
23
|
doc.on 'shown.bs.modal', '.modal', (e) ->
|
data/lib/nfg_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nfg_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Roehm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-12-
|
12
|
+
date: 2019-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|