diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-18 12:41:54 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-18 12:41:54 +0000 |
commit | 6af40200608a1adee2cca2393586fff07c2a2103 (patch) | |
tree | 26c8860bbc5cb981d247cf2027bc07189e682d72 /views/default | |
parent | a2eca798585a345f17d2e57d27d29cb3abe17ee3 (diff) | |
download | elgg-6af40200608a1adee2cca2393586fff07c2a2103.tar.gz elgg-6af40200608a1adee2cca2393586fff07c2a2103.tar.bz2 |
added js to input/form
git-svn-id: http://code.elgg.org/elgg/trunk@3769 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/input/form.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php index b5db3e55f..945d74d20 100644 --- a/views/default/input/form.php +++ b/views/default/input/form.php @@ -13,7 +13,10 @@ * @uses $vars['method'] Method (default POST) * @uses $vars['enctype'] How the form is encoded, default blank * @uses $vars['action'] URL of the action being called - * + * @uses $vars['js'] Any Javascript to enter into the form + * @uses $vars['internalid'] id for the form for CSS/Javascript + * @uses $vars['internalname'] name for the form for Javascript + * @uses $vars['disable_security'] turn off CSRF security by setting to true */ if (isset($vars['internalid'])) { @@ -48,7 +51,7 @@ if (!isset($vars['disable_security']) || $vars['disable_security'] != true) { $security_header = elgg_view('input/securitytoken'); } ?> -<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>> +<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> <?php echo $vars['js']; ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>> <?php echo $security_header; ?> <?php echo $body; ?> </form>
\ No newline at end of file |