little bug in last web2py (maybe in a few last releases also)

4 views
Skip to first unread message

Niphlod

unread,
Oct 31, 2010, 2:17:39 PM10/31/10
to web2py-users
hello, when you define a field in a table as a decimal(x,y) , the form
widget renders it as an <input class="decimal(x,y)" .../> .
I'm not perfectly sure that before worked right, because I noticed the
behaviour writing a letter accidentally inside a field, but I guess
before class for inputs of type decimal(x,y) would be simply rendered
as "decimal".

the current web2py_ajax checks for "decimal" as a class with the
following snippet
----
jQuery('input.double,input.decimal').keyup()
-----
and in this way pre-validation does not work.

Niphlod

mdipierro

unread,
Nov 2, 2010, 9:43:47 AM11/2/10
to web2py-users
I think I just fixed it in trunk. Can you please check. Thanks.
Reply all
Reply to author
Forward
0 new messages