summaryrefslogtreecommitdiff
path: root/smartyplugins/block.form.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2013-08-02 21:33:16 +0100
committerlsces <lester@lsces.co.uk>2013-08-02 21:33:16 +0100
commit47e900fcf533c927a696a6e4cf0bbe0bac1c9699 (patch)
treecb60abec3f59d246aefbe00cee0c8f1bbefe133f /smartyplugins/block.form.php
parent03d291d01cc73cd720f3ca2c3e5555217ddcf143 (diff)
downloadthemes-47e900fcf533c927a696a6e4cf0bbe0bac1c9699.tar.gz
themes-47e900fcf533c927a696a6e4cf0bbe0bac1c9699.tar.bz2
themes-47e900fcf533c927a696a6e4cf0bbe0bac1c9699.zip
Identified the real problem with 'form'. admin_columns.tpl had a second embeded
form which Firefox/Seamonkey objected to. <div> block helped compensate but the correct fix was to remove the inner form and just use the main submit button.
Diffstat (limited to 'smartyplugins/block.form.php')
-rw-r--r--smartyplugins/block.form.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/smartyplugins/block.form.php b/smartyplugins/block.form.php
index 562cc0a..94cef96 100644
--- a/smartyplugins/block.form.php
+++ b/smartyplugins/block.form.php
@@ -95,11 +95,11 @@ function smarty_block_form( $pParams, $pContent, &$gBitSmarty) {
}
$onsub = ( !empty( $onsubmit ) ? ' onsubmit="'.$onsubmit.'"' : '' );
- $ret = '<form action="'.$url.( !empty( $pParams['ianchor'] ) ? '#'.$pParams['ianchor'] : '' ).'" '.$atts.$onsub.'><div class="form">';
+ $ret = '<form action="'.$url.( !empty( $pParams['ianchor'] ) ? '#'.$pParams['ianchor'] : '' ).'" '.$atts.$onsub.'>';
$ret .= isset( $legend ) ? '<fieldset>'.$legend : ''; // adding the div makes it easier to be xhtml compliant
$ret .= $pContent;
$ret .= isset( $legend ) ? '</fieldset>' : ''; // close the open tags
- $ret .= '</div></form>';
+ $ret .= '</form>';
return $ret;
}
}