remove DOM usage from object
This commit is contained in:
parent
cf1d32e520
commit
1ad5681827
@ -9,19 +9,13 @@ class ObjectView < ElementView
|
|||||||
|
|
||||||
def draw
|
def draw
|
||||||
# todo, remove the DOM use
|
# todo, remove the DOM use
|
||||||
DOM do |dom|
|
@element = div("ul.nav!")
|
||||||
dom.ul.nav! do # :sid => @object_id
|
add( "li" ) << div("span" , class_header(@object_id) )
|
||||||
dom.li do
|
@element << div("li" , "-------------------------")
|
||||||
dom.span {class_header(@object_id)}
|
|
||||||
end
|
|
||||||
dom.li { " -------------------------"}
|
|
||||||
content(@object_id).each do |con3|
|
content(@object_id).each do |con3|
|
||||||
dom.li do
|
add("li") << div("a" , con3[0])
|
||||||
dom.a(:href => "#") { con3[0]}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
return @element
|
||||||
end
|
end
|
||||||
|
|
||||||
def object_changed reg
|
def object_changed reg
|
||||||
|
Loading…
Reference in New Issue
Block a user