lib/ezframe/html.rb in ezframe-0.2.0 vs lib/ezframe/html.rb in ezframe-0.3.0
- old
+ new
@@ -77,11 +77,11 @@
if v.is_a?(Array)
v, selected = v
h[:selected] = "selected" if selected
end
h[:child] = v
- # Logger.info "select: hash: k=#{k}, v=#{v}, value=#{ht_h[:value]}"
+ # EzLog.info "select: hash: k=#{k}, v=#{v}, value=#{ht_h[:value]}"
if ht_h[:value] && ht_h[:value].to_s == k.to_s
h[:selected] = "selected"
end
h
end
@@ -89,10 +89,10 @@
option_a = item.map do |v|
h = { tag: "option", value: v[0], child: v[1] }
if %w[selected default].include?(v[2])
h[:selected] = "selected"
end
- # Logger.info "select: array: v=#{v}, value=#{ht_h[:value]}"
+ # EzLog.info "select: array: v=#{v}, value=#{ht_h[:value]}"
if ht_h[:value] && ht_h[:value].to_s == v[0].to_s
h[:selected] = "selected"
end
# puts h.inspect
h