jsmenubuilder 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/jsmenubuilder.rb +9 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98921611f156206a22c93b9f2b6dc026454e727a32f6f71c405b742b20a37707
|
4
|
+
data.tar.gz: 7f93bc2cf61a09c6e6807ead5e4c4da8117b5af55f520036e2830fb14da9546f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd6d44598ba6b155763503a1ac55648fc1fd78854616bf592405ef1d183c47a80167afedb19b7b74773dba2c746c268509f3cfabc531075196b3684799fd731f
|
7
|
+
data.tar.gz: e28fa2af9eb35bc65de92af3d32fbf5f2d12b324be62082f428adaa4793b5db0799148ca7a6183c3cc91edf5ddae96f354d3a20f02ea9948a2237d21232643e4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/jsmenubuilder.rb
CHANGED
@@ -183,12 +183,20 @@ for (i = 0; i < acc.length; i++) {
|
|
183
183
|
acc[i].addEventListener("click", function() {
|
184
184
|
this.classList.toggle("active");
|
185
185
|
var panel = this.nextElementSibling;
|
186
|
+
e = panel.children[0];
|
187
|
+
|
186
188
|
if (panel.style.maxHeight){
|
187
189
|
panel.style.maxHeight = null;
|
190
|
+
|
191
|
+
if (e) {
|
192
|
+
|
193
|
+
let event = new Event("dblclick");
|
194
|
+
e.dispatchEvent(event);
|
195
|
+
|
196
|
+
}
|
188
197
|
}
|
189
198
|
else {
|
190
199
|
panel.style.maxHeight = panel.scrollHeight + "px";
|
191
|
-
e = panel.children[0]
|
192
200
|
if (e)
|
193
201
|
e.click()
|
194
202
|
}
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsmenubuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
haYJPATx3zs+9jtQoiFg+keM0CPYk/5LgCv9jxxzQcSS20C8O9MWRVvYfIr47ak7
|
36
36
|
yXrDPmRvbJLTNjDv6Tkg3vU6
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
metadata.gz.sig
CHANGED
Binary file
|