aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/default
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-05-17 13:21:53 +0200
committerSem <sembrestels@riseup.net>2012-05-17 13:21:53 +0200
commit7c6b386cbbc7a3866a59e58498a6c127216cac72 (patch)
treee09956d5a0c4d047e48c654efc9afa3deaaba2d5 /mod/search/views/default
parentdfc5cf46a841a144f868ebdd99262c0479a4b59d (diff)
downloadelgg-7c6b386cbbc7a3866a59e58498a6c127216cac72.tar.gz
elgg-7c6b386cbbc7a3866a59e58498a6c127216cac72.tar.bz2
Fixes #3583. Added hidden input in search box to add the &search_type=all in search urls, and highlight the All menu item.
Diffstat (limited to 'mod/search/views/default')
-rw-r--r--mod/search/views/default/search/search_box.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/search/views/default/search/search_box.php b/mod/search/views/default/search/search_box.php
index 87d59519c..ff12ae4f0 100644
--- a/mod/search/views/default/search/search_box.php
+++ b/mod/search/views/default/search/search_box.php
@@ -38,6 +38,7 @@ $display_query = htmlspecialchars($display_query, ENT_QUOTES, 'UTF-8', false);
<form class="<?php echo $class; ?>" action="<?php echo elgg_get_site_url(); ?>search" method="get">
<fieldset>
<input type="text" class="search-input" size="21" name="q" value="<?php echo elgg_echo('search'); ?>" onblur="if (this.value=='') { this.value='<?php echo elgg_echo('search'); ?>' }" onfocus="if (this.value=='<?php echo elgg_echo('search'); ?>') { this.value='' };" />
+ <input type="hidden" name="search_type" value="all" />
<input type="submit" value="<?php echo elgg_echo('search:go'); ?>" class="search-submit-button" />
</fieldset>
-</form> \ No newline at end of file
+</form>