bullet_train 1.7.12 → 1.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b1643d265ac5b803e16a2409f8f2d92c73aa133c293f72bed124f62c62963d3
|
4
|
+
data.tar.gz: 4fadb183db1dbfcd209e27dfbfdb2cf95e542febf82a53cf46664ee41c5523d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fc59fe7a9a7723c4e80f1f21be4e5b94b82f4157b01aaee4491ea3d2eec2965107a3e111fd6d98cd9d948f4cfd8e5228bdc652f3cbd88e9ba6bb0ae3e06c47
|
7
|
+
data.tar.gz: 5d60f0e4821e7e5172346c2e5b2287690e2c5fd41b17f3ccadd7a335c3cee989465c887018a963c3a552e9cea947fae430dba18251030db4a312a92bc1e44153
|
@@ -48,7 +48,7 @@
|
|
48
48
|
<% end %>
|
49
49
|
|
50
50
|
<script type="text/javascript">
|
51
|
-
|
51
|
+
function btSetUserTimeZone(){
|
52
52
|
|
53
53
|
// generate a mapping of js timezones compared to rails timezones.
|
54
54
|
var jsTimezoneMapping = {
|
@@ -67,10 +67,17 @@
|
|
67
67
|
var option = document.querySelector("#user_time_zone option[value=\"" + railsValue + "\"]")
|
68
68
|
if(option){
|
69
69
|
document.querySelector("#user_time_zone").value = railsValue;
|
70
|
+
|
71
|
+
// update the select2 as well. is there a better way to handle this?
|
72
|
+
// why don't _they_ handle this for us?
|
73
|
+
var select2 = document.querySelector("#select2-user_time_zone-container");
|
74
|
+
select2.attributes.title = option.text;
|
75
|
+
select2.textContent = option.text;
|
70
76
|
}else{
|
71
77
|
console.log('We were unable to find a timezone matching the rails detected value of ', railsValue);
|
72
78
|
}
|
73
79
|
}
|
74
80
|
|
75
|
-
}
|
81
|
+
}
|
82
|
+
document.addEventListener('turbo:load', btSetUserTimeZone, { once: true });
|
76
83
|
</script>
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|