From 0f43651e0952005aadf149b7b841cdaf5a586695 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Mon, 16 Jan 2012 22:03:30 -0600 Subject: [PATCH] issue 618, input with error gets class invalidinput, thanks David --- VERSION | 2 +- gluon/html.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 4cc82eab..92241d6a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-01-16 21:58:15) stable +Version 1.99.4 (2012-01-16 22:03:22) stable diff --git a/gluon/html.py b/gluon/html.py index 97c29b35..83c485cd 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -1611,6 +1611,7 @@ class INPUT(DIV): if name and hasattr(self, 'errors') \ and self.errors.get(name, None) \ and self['hideerror'] != True: + self['_class'] = (self['_class'] and self['_class']+' ' or '')+'invalidinput' return DIV.xml(self) + DIV(self.errors[name], _class='error', errors=None, _id='%s__error' % name).xml() else: