From f2dca4698ce8c92b80941d49af1d09cfe6cbdab3 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 13 Feb 2013 08:35:42 -0600 Subject: [PATCH] issue 1325 (hidden->display:none), thanks Anthony --- VERSION | 2 +- gluon/html.py | 2 +- gluon/sqlhtml.py | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index fbdeb76d..c9585377 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.02.11.00.26.09 +Version 2.4.1-alpha.2+timestamp.2013.02.13.08.34.56 diff --git a/gluon/html.py b/gluon/html.py index 98895620..c60d92cd 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -2051,7 +2051,7 @@ class FORM(DIV): if hasattr(self, 'formname') and self.formname: c.append(INPUT(_type='hidden', _name='_formname', _value=self.formname)) - return DIV(c, _class="hidden") + return DIV(c, _style="display:none;") def xml(self): newform = FORM(*self.components, **self.attributes) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 68ce31ca..c4b4a20c 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -460,8 +460,10 @@ class CheckboxesWidget(OptionsWidget): if opts: opts.append( - INPUT(_class="hidden", requires=attr.get('requires', None), - _disabled="disabled", _name=field.name, + INPUT(requires=attr.get('requires', None), + _style="display:none;", + _disabled="disabled", + _name=field.name, hideerror=False)) return parent(*opts, **attr) @@ -1713,7 +1715,7 @@ class SQLFORM(FORM): ) ) return CAT( - DIV(_id=panel_id, _class='hidden', *criteria), fadd) + DIV(_id=panel_id, _style="display:none;", *criteria), fadd) @staticmethod def grid(query,