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 ''
fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div class='dymanic_load widget' path='#{ret}'></div>")
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
front.swap(fragment)
end