diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-28 18:44:25 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-28 18:44:25 +0000 |
commit | 51bdec218af83488cd15a05c8d731e67fdd22264 (patch) | |
tree | 6e5c376b9ecccbc857a42644f2e3224f2ae97674 /views | |
parent | 38335addc0fdcf3d798bfc783b0f159eb5c5c2d6 (diff) | |
download | elgg-51bdec218af83488cd15a05c8d731e67fdd22264.tar.gz elgg-51bdec218af83488cd15a05c8d731e67fdd22264.tar.bz2 |
fixed sticky form for album creation
Diffstat (limited to 'views')
-rw-r--r-- | views/default/tidypics/forms/edit.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/views/default/tidypics/forms/edit.php b/views/default/tidypics/forms/edit.php index 0ed8cffab..d7df138b4 100644 --- a/views/default/tidypics/forms/edit.php +++ b/views/default/tidypics/forms/edit.php @@ -22,12 +22,20 @@ $action = "tidypics/addalbum";
$tags = "";
$title = "";
- $description = "";
+ $body = "";
if (defined('ACCESS_DEFAULT'))
$access_id = ACCESS_DEFAULT;
else
$access_id = 0;
$subtype = 'album';
+
+ $title = $_SESSION['tidypicstitle'];
+ $body = $_SESSION['tidypicsbody'];
+ $tags = $_SESSION['tidypicstags'];
+
+ unset($_SESSION['tidypicstitle']);
+ unset($_SESSION['tidypicsbody']);
+ unset($_SESSION['tidypicstags']);
}
// group or individual
@@ -38,28 +46,28 @@ <form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post">
<p>
<label><?php echo elgg_echo('album:title'); ?></label>
- <?php echo elgg_view("input/text", array("internalname" => "title", "value" => $title,)); ?>
+ <?php echo elgg_view("input/text", array("internalname" => "tidypicstitle", "value" => $title,)); ?>
</p>
<?php
if ($subtype == 'album') {
?>
<p>
<label><?php echo elgg_echo('album:desc'); ?></label>
- <?php echo elgg_view("input/text",array("internalname" => "descript","value" => $body,)); ?>
+ <?php echo elgg_view("input/text",array("internalname" => "tidypicsbody","value" => $body,)); ?>
</p>
<?php
} else {
?>
<p>
<label><?php echo elgg_echo('caption'); ?></label>
- <?php echo elgg_view("input/text",array("internalname" => "descript","value" => $body,)); ?>
+ <?php echo elgg_view("input/text",array("internalname" => "tidypicsbody","value" => $body,)); ?>
</p>
<?php
}
?>
<p>
<label><?php echo elgg_echo("tags"); ?></label>
- <?php echo elgg_view("input/tags", array( "internalname" => "tags","value" => $tags,)); ?>
+ <?php echo elgg_view("input/tags", array( "internalname" => "tidypicstags","value" => $tags,)); ?>
</p>
<?php
|