String == Box in JsCommands#ReplaceOption
In JsCommands.scala, in ReplaceOption method, there is a:
8<-----------------------------
(if (value == dflt) "y.selected = true; " else "")
8<-----------------------------
with dflt:Box[String], and so never succed, it should be:
8<-----------------------------
(dflt match { case Full(x) => if (value == x) "y.selected = true; " else "" ; case _ => "" })
8<-----------------------------
or something alike
8<-----------------------------
(if (value == dflt) "y.selected = true; " else "")
8<-----------------------------
with dflt:Box[String], and so never succed, it should be:
8<-----------------------------
(dflt match { case Full(x) => if (value == x) "y.selected = true; " else "" ; case _ => "" })
8<-----------------------------
or something alike
Leave a comment
on 2010-02-18 22:08 *
By marius.danciu
(from github) I'm referring to ajaxSubmit and submitAjaxForm