Fix counter front-end

This commit is contained in:
chris 2012-12-28 11:44:33 +08:00
parent 37309a452d
commit 0a0298aaad
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module ParserFrontEnd
ret << eval("\"#{front['path']}\"") rescue '' ret << eval("\"#{front['path']}\"") rescue ''
fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div class='dymanic_load widget' path='#{ret}'></div>") fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div class='dymanic_load widget' path='#{ret}'></div>")
else else
fragment = Nokogiri::HTML::DocumentFragment.new(body, eval("#{front['value']}").to_s) fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div id='#{front['id']}' class='#{front['class']}'>eval('#{front['value']}'').to_s</div>" )
end end
front.swap(fragment) front.swap(fragment)
end end