729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
|
# File 'lib/bull/ui_core.rb', line 729
def render
klass = 'inactive animated fadeOut'
if params.show == 'visible'
klass = 'active animated fadeIn'
h = $document[params.target].height
x = $document[params.target].position.x
y = $document[params.target].position.y
$document[params.id].offset.x = x
$document[params.id].offset.y = y+h
$window.after(5){params.close.call}
end
div(id: params.id) do
div(class: 'popover ' + klass) do
div(class: 'arrow-up')
div(class: 'box') do
div(class: 'close'){i(class: 'fa fa-times')}.on(:click){params.close.call}
div(class: 'content'){content}
end
end
end
end
|