uber_select_rails 0.4.4 → 0.4.5
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: 84ef1d0cf1002249e0227db7b418a8939b08565eaf4c0f1d41d9fb30fe06fb16
|
4
|
+
data.tar.gz: df218314fbdf61a2a11a3f7b7fdda895893368f5ff8da73345eae6f597fb6dea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c655fe9651218f7e292e5efbaf28b96b339f0993e3e344c5f3f116271bf850d7a1aa4b2cfa8523ea39b159208a7cb7d750bf4838d0111841c047f3c916e1835d
|
7
|
+
data.tar.gz: 921dc47d6440caa9e76f6f83e5e843dee45b84f1bd51e5f01a3382b582d6d335f51438a417baeb3673b9e99cbab92361dfa85c9985a4d9566adc733a6ed4c593
|
@@ -152,7 +152,8 @@
|
|
152
152
|
function updateSelectValue(value){
|
153
153
|
var before = $(select).val()
|
154
154
|
$(select).val(value)
|
155
|
-
|
155
|
+
var after = $(select).val() // Read value the same way instead of comparing to `value` so the same coercion is applied
|
156
|
+
if (before != after) { $(select).trigger('change') } // Only trigger a change if the value has actually changed
|
156
157
|
}
|
157
158
|
|
158
159
|
// Selects the option with an emptystring value, or the first option if there is no blank option
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uber_select_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Jakobsen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|