openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 3da676ddc596c4070ad2e9f671a0439379fce60d
parent a113949346ce836a5675cdd694c5ab8376f267e9
Author: Jan Dankert <devnull@localhost>
Date:   Fri, 18 Nov 2011 23:38:03 +0100

Erweiterung für Formulare mit Uploads.

Diffstat:
themes/default/include/html/form.inc.php | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/themes/default/include/html/form.inc.php b/themes/default/include/html/form.inc.php @@ -24,6 +24,15 @@ $attr_subaction = $subActionName; } } + + switch( $attr_type ) + { + case 'upload': + $attr_tmp_submitFunction = ''; + break; + default: + $attr_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } ?><form name="<?php echo $attr_name ?>" target="<?php echo $attr_target ?>" @@ -31,7 +40,7 @@ method="<?php echo $attr_method ?>" enctype="<?php echo $attr_enctype ?>" style="margin:0px;padding:0px;" class="<?php echo $attr_action ?>" - onSubmit="formSubmit( $(this) ); return false;"> + onSubmit="<?php echo $attr_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" />