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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5244520af191f828c01e12b2a6ad0af0487a1ff65ce19d15fc053581ea6f3b3
4
- data.tar.gz: 49552cbdf24816a0eb0239c5a84fadc884c9a335c5019194e80671dbeea8afd7
3
+ metadata.gz: 98921611f156206a22c93b9f2b6dc026454e727a32f6f71c405b742b20a37707
4
+ data.tar.gz: 7f93bc2cf61a09c6e6807ead5e4c4da8117b5af55f520036e2830fb14da9546f
5
5
  SHA512:
6
- metadata.gz: ad7bc262837a0ac9586e522f554f843d0552eb7f704af427eaec2ad6dacfef64aabfdd1a896998db3eaa9cd74f6726c48da4f800053ac143e10760037cfc609f
7
- data.tar.gz: 72ba5e1744a77cb387859bd6e0e13f16c3699be8a1a1c0959b8438b6ec31e379191c1e15c9844413a64d27f70cc6cb72c29a705aa0e4fd0c6d51187a52d8ddb2
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.7
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-09-30 00:00:00.000000000 Z
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