aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/views/default/logbrowser/refine.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-22 21:59:12 -0500
committercash <cash.costello@gmail.com>2011-11-22 21:59:12 -0500
commite144ddac4e99694a407aa8fd95f07de225a181e8 (patch)
tree4155f080b49c71523f74ab9e812ea39a8afd72ac /mod/logbrowser/views/default/logbrowser/refine.php
parenta35e00f095cfbe924af589260649674f6b05384a (diff)
downloadelgg-e144ddac4e99694a407aa8fd95f07de225a181e8.tar.gz
elgg-e144ddac4e99694a407aa8fd95f07de225a181e8.tar.bz2
Fixes #3775 updates the log browser link and keeps the refine area open if the page is loaded with a user selected
Diffstat (limited to 'mod/logbrowser/views/default/logbrowser/refine.php')
-rw-r--r--mod/logbrowser/views/default/logbrowser/refine.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/logbrowser/views/default/logbrowser/refine.php b/mod/logbrowser/views/default/logbrowser/refine.php
index 27cb6042f..86460c79e 100644
--- a/mod/logbrowser/views/default/logbrowser/refine.php
+++ b/mod/logbrowser/views/default/logbrowser/refine.php
@@ -18,13 +18,18 @@ $toggle_link = elgg_view('output/url', array(
'rel' => 'toggle',
));
+$form_class = 'elgg-module elgg-module-inline';
+if (!isset($vars['user_guid'])) {
+ $form_class .= ' hidden';
+}
+
?>
<div id="logbrowser-search-area" class="mbm">
<div>
<?php echo $toggle_link; ?>
</div>
- <div id="log-browser-search-form" class="elgg-module elgg-module-inline hidden">
+ <div id="log-browser-search-form" class="<?php echo $form_class; ?>">
<div class="elgg-head">
<h3><?php echo elgg_echo('logbrowser:search'); ?></h3>
</div>