Can not setup css at JqJsCmds.ModalDialog
When I use ModalDialog I want to setup the css but fail,
My code would be:
ModalDialog(someHtml, "top: '10px'")
I found the ModalDialog code at Lift:
class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd {
val toJsCmd = "jQuery.blockUI({ message: " + AltXML.toXML(Group(S.session.map(s =>
s.fixHtml(s.processSurroundAndInclude("Modal Dialog", html))).openOr(html)), false, true, S.ieMode).encJs +
(css.map(w => ", css: '" + w + "' ").openOr("")) + "});"
}
the css is wrap by " ' ' " ,
but I found http://malsup.com/jquery/block/#demos
the css is wraped by "{ }"
My code would be:
ModalDialog(someHtml, "top: '10px'")
I found the ModalDialog code at Lift:
class ModalDialog(html: NodeSeq, css: Box[String]) extends JsCmd {
val toJsCmd = "jQuery.blockUI({ message: " + AltXML.toXML(Group(S.session.map(s =>
s.fixHtml(s.processSurroundAndInclude("Modal Dialog", html))).openOr(html)), false, true, S.ieMode).encJs +
(css.map(w => ", css: '" + w + "' ").openOr("")) + "});"
}
the css is wrap by " ' ' " ,
but I found http://malsup.com/jquery/block/#demos
the css is wraped by "{ }"
Leave a comment
on 2010-02-06 19:50 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/218/find