issue 1325 (hidden->display:none), thanks Anthony

This commit is contained in:
mdipierro
2013-02-13 08:35:42 -06:00
parent b940837c51
commit f2dca4698c
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)
+5 -3
View File
@@ -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,