aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/pulldown.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-11 19:14:32 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-11 19:14:32 +0000
commitd3334ef71b8e71e0db6c463436555f406941d5c9 (patch)
treecd4109bcc0d7abf2528cf5940e6c132c3e98b01a /views/default/input/pulldown.php
parent982d56d370ba021e17a6e8548cdeb26345a89380 (diff)
downloadelgg-d3334ef71b8e71e0db6c463436555f406941d5c9.tar.gz
elgg-d3334ef71b8e71e0db6c463436555f406941d5c9.tar.bz2
Implemented sticky forms.
git-svn-id: http://code.elgg.org/elgg/trunk@5368 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/pulldown.php')
-rw-r--r--views/default/input/pulldown.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php
index 59c8a7adc..b24d92b38 100644
--- a/views/default/input/pulldown.php
+++ b/views/default/input/pulldown.php
@@ -21,6 +21,10 @@ if (!$class) {
$class = "input_pulldown";
}
+if (!isset($vars['value']) || $vars['value'] === FALSE) {
+ $vars['value'] = elgg_get_sticky_value($vars['internalname']);
+}
+
?>
<select name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> <?php echo $vars['js']; ?> <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> class="<?php echo $class; ?>">