Skip to content

Loading…

Fixes #3583. Added hidden input in search box to add the &search_type=all... #228

Merged
merged 1 commit into from

3 participants

@sembrestels
Elgg member

...l in search urls, and highlight the All menu item.

@sembrestels sembrestels Fixes #3583. Added hidden input in search box to add the &search_type…
…=all in search urls, and highlight the All menu item.
7c6b386
@ewinslow
Elgg member

LGTM.

@cash cash merged commit 35059d5 into Elgg:1.8
@sembrestels sembrestels referenced this pull request
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 17, 2012
  1. @sembrestels

    Fixes #3583. Added hidden input in search box to add the &search_type…

    sembrestels committed
    …=all in search urls, and highlight the All menu item.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/search/views/default/search/search_box.php
View
3 mod/search/views/default/search/search_box.php
@@ -38,6 +38,7 @@
<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>
+</form>
Something went wrong with that request. Please try again.