If it doesn't make into Lift, could you add them to the wiki?
Thanks
Diego
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
--
Diego Medina
Web Developer
http://www.fmpwizard.com
On Tue, Apr 19, 2011 at 6:16 AM, Lukasz Kuczera <kuk...@gmail.com> wrote:If it doesn't make into Lift, could you add them to the wiki?
> Hi Folks,
> I needed to disable/enable input on ajax submit but I didn't find code
> for that, so I have created two simple classes:
>
> import net.liftweb.http.js._
>
> case class Disable(id: String) extends JsCmd {
> def toJsCmd = "jQuery('#"+id+"').attr('disabled', 'true')" ;
> }
>
> case class Enable(id: String) extends JsCmd {
> def toJsCmd = "jQuery('#"+id+"').removeAttr('disabled')" ;
> }
>
> If it is not some kind of reinventing the wheel it could be worth
> putting alongside other JqJsCmds or if there is an interest I can
> rewrite that to JsCm
Thanks
Diego
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.--
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
Diego Medina
Web Developer
http://www.fmpwizard.com
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
> Or put them into a Lift module
>
>
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.