lib/postrunner/ViewFrame.rb in postrunner-0.6.0 vs lib/postrunner/ViewFrame.rb in postrunner-0.7.0
- old
+ new
@@ -38,10 +38,11 @@
def to_html(doc)
doc.unique(:viewframe_style) {
# Add the necessary style sheet snippets to the document head.
doc.head {
doc.style(style)
- doc.script({ 'src' => 'postrunner/postrunner.js' })
+ doc.script({ 'language' => 'javascript', 'type' => 'text/javascript',
+ 'src' => 'postrunner/postrunner.js' })
}
}
doc.head {
doc.script(<<"EOT"
function init_viewframe_#{@id}() {