jsmenubuilder 0.2.6 → 0.2.7
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.tar.gz.sig +0 -0
- data/lib/jsmenubuilder.rb +12 -3
- 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: e5244520af191f828c01e12b2a6ad0af0487a1ff65ce19d15fc053581ea6f3b3
|
4
|
+
data.tar.gz: 49552cbdf24816a0eb0239c5a84fadc884c9a335c5019194e80671dbeea8afd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad7bc262837a0ac9586e522f554f843d0552eb7f704af427eaec2ad6dacfef64aabfdd1a896998db3eaa9cd74f6726c48da4f800053ac143e10760037cfc609f
|
7
|
+
data.tar.gz: 72ba5e1744a77cb387859bd6e0e13f16c3699be8a1a1c0959b8438b6ec31e379191c1e15c9844413a64d27f70cc6cb72c29a705aa0e4fd0c6d51187a52d8ddb2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/jsmenubuilder.rb
CHANGED
@@ -185,8 +185,12 @@ for (i = 0; i < acc.length; i++) {
|
|
185
185
|
var panel = this.nextElementSibling;
|
186
186
|
if (panel.style.maxHeight){
|
187
187
|
panel.style.maxHeight = null;
|
188
|
-
}
|
188
|
+
}
|
189
|
+
else {
|
189
190
|
panel.style.maxHeight = panel.scrollHeight + "px";
|
191
|
+
e = panel.children[0]
|
192
|
+
if (e)
|
193
|
+
e.click()
|
190
194
|
}
|
191
195
|
});
|
192
196
|
}
|
@@ -332,6 +336,8 @@ EOF
|
|
332
336
|
r.merge(e.attributes[:title] => e.children.join.strip)
|
333
337
|
end
|
334
338
|
|
339
|
+
puts ('build_h: ' + h.inspect).debug if @debug
|
340
|
+
|
335
341
|
{doc.root.attributes[:mode].to_s.to_sym => h}
|
336
342
|
|
337
343
|
end
|
@@ -459,12 +465,13 @@ EOF
|
|
459
465
|
def accordion(opt={})
|
460
466
|
|
461
467
|
panels = opt[:accordion]
|
462
|
-
|
468
|
+
debug = @debug
|
463
469
|
|
464
470
|
a = RexleBuilder.build do |xml|
|
465
471
|
xml.html do
|
466
472
|
|
467
473
|
panels.each do |heading, inner_html|
|
474
|
+
puts 'inner_html: ' + inner_html.inspect if debug
|
468
475
|
xml.button({class:'accordion'}, heading.to_s)
|
469
476
|
xml.div({class:'panel'}, inner_html)
|
470
477
|
end
|
@@ -472,7 +479,9 @@ EOF
|
|
472
479
|
end
|
473
480
|
end
|
474
481
|
|
475
|
-
|
482
|
+
doc = Rexle.new(a)
|
483
|
+
puts 'doc: ' + doc.xml.inspect if @debug
|
484
|
+
return doc
|
476
485
|
|
477
486
|
end
|
478
487
|
|
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.7
|
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-
|
38
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
metadata.gz.sig
CHANGED
Binary file
|